Re: Implementing an Inspector similar to the one in IB.
Re: Implementing an Inspector similar to the one in IB.
- Subject: Re: Implementing an Inspector similar to the one in IB.
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 12 Jan 2009 04:59:17 -0500
On Sun, Jan 11, 2009 at 3:20 AM, Brian Bruinewoud <email@hidden> wrote:
> I would like to implement an inspector that has views that show/hide by
> clicking on their headings similar to the ones in the Interface Builder
> inspector.
Are you talking about the row of buttons at the top that changes the
contents of the panel (like the similar Inspector in iWork apps)? If
so, you can use a tabless NSTabView and a NSSegmentedControl, though
it won't look quite the same (NSSegmentedControl highlights its
selection in gray, not blue, rdar://5918481). Set a different tag for
each segment of the NSSegmentedControl, and wire up the action of the
control to a method on your window controller that switches the
selected tab in the NSTabView accordingly.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden