• 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: a Drawer's parent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a Drawer's parent


  • Subject: Re: a Drawer's parent
  • From: Scott Anguish <email@hidden>
  • Date: Thu, 22 May 2003 23:02:37 -0400

On Thursday, May 22, 2003, at 02:44 PM, Danny Swarzman wrote:

I'm making a preference pane with a drawer. I set up everything in the .NIB
but when I a run, the drawer doesn't seem to have the parent window I
assigned to it.

I got around it by getting the window that is associate with the view that
is associated with my NSPreferencePane subclass object. I assign that value
as the drawer's parent window and it works as expected.

Anyone have any idea why this could be happening? Is it a bug in Interface
Builder or the NSDrawer class?


Do you mean a preference pane in the Preferences.app?

If so, the problem is that the window in the nib is not the same window that is used when it is displayed. The contents of the window are moved to a new window.

You'd need to change the drawer parent when your prefs panel is inserted into the view.. I'd expect that you'd need to do this when the view is inserted (-mainViewDidLoad)...

but you'll also need to consider the situations of when the pane changes out (remove the drawer when you get a -didUnselect) and add it again when you get a -didSelect

Mind you, I'm not sure that drawers are even the appropriate UI item for use with a prefs panel.
_______________________________________________
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.
References: 
 >a Drawer's parent (From: Danny Swarzman <email@hidden>)

  • Prev by Date: Re: CustomizeToolbar and First Responder
  • Next by Date: Centering text cells in table view rows
  • Previous by thread: a Drawer's parent
  • Next by thread: Control characters in an NSAttributed string?
  • Index(es):
    • Date
    • Thread