• 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: Dual purpose panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dual purpose panel


  • Subject: Re: Dual purpose panel
  • From: matt neuburg <email@hidden>
  • Date: Wed, 19 May 2004 08:27:20 -0700

On Tue, 18 May 2004 21:09:26 -0500, Tony Cate <email@hidden> said:
>I have a panel I would like to let the user display as
>either a sheet or inspector. Once displayed as a sheet
>though, it responds to isSheet with a yes and it won't
>display properly as a panel. How do I tell the window it's
>not a sheet?

This is just a guess (meaning I am typing this reply without testing in
Xcode first), but it rather sounds like the problem is that you are reusing
the same copy of the panel. Instead, put the panel in a nib of its own and
set it to release when closed. In this way, every time you show the panel
you are creating a completely new instance of it. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.


  • Prev by Date: Re: Can't edit an NSTableView
  • Next by Date: Re: Textfield and s default button
  • Previous by thread: Re: Dual purpose panel
  • Next by thread: [firstPath appendBezierPath: [secondPath bezierPathByReversingPath]];
  • Index(es):
    • Date
    • Thread