hi,
using objc and cocoa, I need to display a alert message box that pops up when some background routine, backgrnd_rtn(), is executing. After background routine done, auto close the alert box.
my app is connecting to library. library notifies something started and ending. I need app
to handle these before complete its launching. Like some alert pop up that auto closes when end is detected.
What is best way to handle this?.
used runModalForWindow and got this error:
'pigSegment' cannot be found error.
If you just programmatically create an NSWindow, you can use the -makeKeyAndOrderFront: and -close methods. However, since these are UI things, they must be done on the main thread. You can still use your background routine, but when it comes time to manipulate the UI, those calls need to be dispatched onto the main thread in some way (eg dispatch_async).
I don't know what a 'PieSegment' is – that may have something to do with the library you are using.
Try making a blank project and playing around with creating windows. Once you get it working in a simple project, then you can try moving it over to your other project.