Skip navigation.
 
mlRe: Safari Search Bar
FROM : Seth Willits
DATE : Sat Feb 02 21:24:09 2008

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

Related mailsAuthorDate
mlSafari Search Bar Carter R. Harrison Feb 2, 03:11
mlRe: Safari Search Bar Seth Willits Feb 2, 21:24