That worked brilliantly!! Thank you very much.
On 2009-10-12, at 3:59 PM, Dave Keck wrote:
- (void)mouseDidEnterView: (NSView *)newMouseOverView
{
if (mouseOverView)
{
[[mouseOverView animator] setFrame: oldMouseOverViewFrame];
}
mouseOverView = newMouseOverView;
> Thank you, that helps a lot. How would I get a reference to the previous
> NSView object?
On your mouseEntered, send a message to some controlling object - let's call
it MyViewController:
- (void)mouseEntered:(NSEvent *)theEvent
{
[myViewController mouseDidEnterView: self];
}
- (void)
Thank you, that helps a lot. How would I get a reference to the
previous NSView object?
On 2009-10-12, at 3:22 PM, Dave Keck wrote:
I'm not sure what I'm doing wrong here. Also, how do I make it so
that the
frame size increases from the center of the view outwards. Like
right now it
looks
Maybe the fact that your view is growing while you move your mouse
(and under your mouse) is causing AppKit to become confused about
whether or not the mouse is inside or outside the view.
What about managing your animations from a mouse-move message on the
NSCollectionView?
Jesper
On Oct 1
> I'm not sure what I'm doing wrong here. Also, how do I make it so that the
> frame size increases from the center of the view outwards. Like right now it
> looks like its magnifying from the left to the right. I'm sure theres
> something I need to do with the origin, but I'm not sure.
I'd imagin
I have an NSCollectionView full of NSViews containing NSImageViews.
Basically looks like a NSMatrix of NSImageCells. I've subclassed the
NSCollectionView's prototype NSView and added methods to add a
"magnification" sort of effect when a user hovers on an item:
- (void)mouseEntered:(NSEvent