• 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: creating a preference window safari style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating a preference window safari style


  • Subject: Re: creating a preference window safari style
  • From: John Pannell <email@hidden>
  • Date: Fri, 3 Feb 2006 19:55:08 -0700

Hi Andrea-

These are the steps I took; there may be a couple ways to achieve the effect...

1. I set up the controller of my preference window to be the delegate of the tab view that holds the different pref views.
2. I implemented the tabView:didSelectTabViewItem delegate method.
3. In that method, I determined the height of the content view of the selected tab view item.
4. I then used the window's setFrame:display:animate: to resize the window using the height of the selected content view plus some pixels to account for the title bar and margins.


Hope this helps!

John

On Feb 3, 2006, at 5:54 PM, Andrea Salomoni wrote:

Hi to all,

I need to create a simple preference window with a toolbar.
I know how to do it, but I would like to add the window resizing behavior like in the safari preference win.
How have I to start?


Thank you all
Andrea

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40positivespinmedia.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: creating a preference window safari style
      • From: Andrea Salomoni <email@hidden>
References: 
 >creating a preference window safari style (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: Toolbar with unifier toolbar/title bug?
  • Next by Date: Re: another NSAnimation crash
  • Previous by thread: creating a preference window safari style
  • Next by thread: Re: creating a preference window safari style
  • Index(es):
    • Date
    • Thread