nsapplication
How do I initialize a window in Objective-C?
For a Mac gr开发者_如何学编程aphics application (not iPhone), I need something like a main method in Java, the first method that gets a program going. I\'ve been looking at things like NSViewControlle[详细]
2023-03-07 15:55 分类:问答NSApplication Delegate Question
I was wondering if - (void)applicationWillTerminate:(NSNotification *)notification is still called when the system shuts down and the a开发者_开发问答pplication is told to quit.[详细]
2023-02-13 19:29 分类:问答How do I run code when a user agent process terminates?
What I want I want a helper app user agent (LSUIElement in Info.plist is True) to add itself to the login items on terminate.[详细]
2023-02-08 16:50 分类:问答NSApplication resigning front most application status: hide v. deactivate
I\'ve got an application that needs to become the front most application after a timer expires and resign the front most status when the timer is started by pressing a button, e.g.[详细]
2023-01-20 22:45 分类:问答Dragging Files to NSStatusItem
I was told that the application:openFile: delegate method for NSApp would allow my application to open files by dropping t开发者_JAVA百科hem into the dock, but does this also apply to NSStatusItems in[详细]
2023-01-13 13:04 分类:问答How to terminate cocoa app in applicationWillFinishLaunching delegate
I have to s开发者_开发知识库how the custom license Agreement dialog to the user before they start using my application.So, I have added new window in my mainMenu.xib and showing that window modally us[详细]
2023-01-02 03:56 分类:问答Any good way to set the exit status of a Cocoa application?
I have a Cocoa app which interacts with a server and displays a GUI. If there is a fatal error, I display an alert and exit. I\'d like to set the exit status to a non-zero value to reflect that an err[详细]
2022-12-28 21:44 分类:问答Cocoa: NSApp beginSheet sets the application delegate?
I am trying to display a custom sheet in my application, but I think I am doing something wrong. While e开发者_如何学Pythonverything seems to be working just fine, I have a rather odd side-effect. (wh[详细]
2022-12-23 10:05 分类:问答How would I develop something like DeskLock from Deskshade?
Sorry to be a nuisance, but I have yet ANOTHER question. How would I do something like DeskLock from macrabbit\'s Deskshade app? I\'ve made the little window and that\'s as far as I\'ve come. I know h[详细]
2022-12-21 00:40 分类:问答Cocoa: int main function
I\'m curious, what role does the int main function play in a Cocoa program?Virtually all of the sample code I\'ve been looking at has only the following code in main.m:[详细]
2022-12-17 21:45 分类:问答