• 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
get the NSWindow instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get the NSWindow instance


  • Subject: get the NSWindow instance
  • From: "Chong Hiu Pun" <email@hidden>
  • Date: Tue, 30 Jul 2002 20:08:23 +0800

In my cocoa application, there is a NSWindow contained a few button and
textfield. How can I get my NSWindow instance(I want to control the NSWindow
behaviour by code) ?

I did the following but don't work:

-(void)applicationDidFinishLaunching:(NSNotification*)notif
{
gWin = [NSApp keyWindow];
}

gWin is nil!
_______________________________________________
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: get the NSWindow instance
      • From: David Martin <email@hidden>
    • Re: get the NSWindow instance
      • From: j o a r <email@hidden>
    • Re: get the NSWindow instance
      • From: Nico <email@hidden>
    • RE: get the NSWindow instance
      • From: "Shantanu Wadodkar" <email@hidden>
  • Prev by Date: What's the best way saving a string into PDF?
  • Next by Date: RE: get the NSWindow instance
  • Previous by thread: Re: What's the best way saving a string into PDF?
  • Next by thread: RE: get the NSWindow instance
  • Index(es):
    • Date
    • Thread