• 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
create NSWindow in Core Foundation tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

create NSWindow in Core Foundation tool


  • Subject: create NSWindow in Core Foundation tool
  • From: Frank Fenn <email@hidden>
  • Date: Sun, 9 Mar 2003 17:59:52 -0700

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?

--

regards
Frank Fenn - Bright Light Software
_______________________________________________
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:
    • Re: create NSWindow in Core Foundation tool
      • From: sinclair44 <email@hidden>
References: 
 >Programmatically taking a screenshot (From: Jesus De Meyer <email@hidden>)

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