• 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[2]: Control Over IB 'Visible At Launch Time' Flag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: Control Over IB 'Visible At Launch Time' Flag


  • Subject: Re[2]: Control Over IB 'Visible At Launch Time' Flag
  • From: Lance Drake <email@hidden>
  • Date: Thu, 14 Aug 2003 10:16:27 -0600

Instead of messing with the flag, turn 'visible at launch time' off and leave it off, then in your -awakeFromNib method, if you decide you want to display the window, call -makeKeyAndOrderFront: on it, and if you decide you don't want to display the window, just do nothing.

Hope this helps,
- Greg

Hi Greg,

Good golly that really DOES help. I have several Cocoa books here and some of them don't even have the WORD 'nib' in the index - none of them mention this flag, it's true influence, scope or access to it's state. It's really amazing how difficult it is sometimes to put together a scenario for how it is one is supposed to do what you would wish.

For instance, 'setTitle' worked fine on the NSWindow pointer I was able to derive - so I knew I was looking at the correct NSWindow object. But calls like 'display', 'close' and other supposedly reasonable commands did not seem to have any effect.

Thanks SO much for your excellent and timely advice.

Lance Drake
_______________________________________________
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: Re[2]: Control Over IB 'Visible At Launch Time' Flag
      • From: Bill Cheeseman <email@hidden>
    • Re: Re[2]: Control Over IB 'Visible At Launch Time' Flag
      • From: publiclook <email@hidden>
References: 
 >Re: Control Over IB 'Visible At Launch Time' Flag (From: Greg Titus <email@hidden>)

  • Prev by Date: RE: Tons of fun w/NSComboBox
  • Next by Date: Strange outline view display behavior
  • Previous by thread: Re: Control Over IB 'Visible At Launch Time' Flag
  • Next by thread: Re: Re[2]: Control Over IB 'Visible At Launch Time' Flag
  • Index(es):
    • Date
    • Thread