Re: create NSWindow in Core Foundation tool
Re: create NSWindow in Core Foundation tool
- Subject: Re: create NSWindow in Core Foundation tool
- From: sinclair44 <email@hidden>
- Date: Sun, 09 Mar 2003 20:37:43 -0500
On 3/9/03 7:59 PM, "Frank Fenn" <email@hidden> wrote:
>
Hi all,
>
>
I wrote a simple core foundation tool (no NIB, nothing) which runs
>
during system start
>
from ~/Library/StartupItems.
>
>
I've created a runloop and attached a NSTimer to it. All works fine. At
>
a specific time
>
I would like to display an info window.
>
>
If I create an NSWindow with mywin = [[NSWindow alloc]
>
initWithContenRect...]; I get
>
lots of runtime errors that there in no connection to some Core
>
Graphics component.
>
>
If I try to use CreteNewWindow() or NewWindow() the window is created
>
and displayed
>
but the runloop (and the tool) terminates immediately so I see the
>
window only for half
>
a second.
>
>
What can I do about this?
I don't know if there's really anything you can do with your current app.
However, you may want to try using NSTask or NSWorkspace to launch a
separate app (standard AppKit).
--
-- sinclair44
[self becomeWorldDictator];
- (void)becomeWorldDictator
{
[[GeorgeBush principalClass] assassinate:[world currentLeaders]];
[[world citizens] terrorize];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.