• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: create NSWindow in Core Foundation tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • SIGINT (was Re: create NSWindow in Core Foundation tool)
      • From: Frank Fenn <email@hidden>
References: 
 >create NSWindow in Core Foundation tool (From: Frank Fenn <email@hidden>)

  • Prev by Date: create NSWindow in Core Foundation tool
  • Next by Date: Re: Object can't alloc itself
  • Previous by thread: create NSWindow in Core Foundation tool
  • Next by thread: SIGINT (was Re: create NSWindow in Core Foundation tool)
  • Index(es):
    • Date
    • Thread