Re: Safari Search Bar
Re: Safari Search Bar
- Subject: Re: Safari Search Bar
- From: Seth Willits <email@hidden>
- Date: Sat, 2 Feb 2008 12:24:09 -0800
On Feb 1, 2008, at 6:11 PM, Carter R. Harrison wrote:
I'm trying to implement a collapsable search bar, similar to that in
Safari 3. It seems like this could be accomplished fairly easily
with a NSSplitView and its delegate methods. My question is, how
could I prevent the NSSplitView from being user resizable? I don't
want the cursor to change into the double arrow when the user has
the cursor over the divider. And I don't want them to be able to
move the divider at all. I figure I could use some of the delegate
methods that allow you to constrain the sizes of the subview to
prevent a resize, but this doesn't solve the cursor problem. Thanks
everybody.
Hi Carter,
For what you want to do, you don't need to use a split view at all.
Just dump the view into the same superview as the "webview" in your
app, and use NSViewAnimation or the animator in 10.5 (if you can) to
handle the smooth move-in, move-out animation, and that's all there is
to it. NSSplitView is far too limited and not-for-your-purpose to be
useful.
--
Seth Willits
_______________________________________________
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