NSView subclasses with IB
NSView subclasses with IB
- Subject: NSView subclasses with IB
- From: lisaia <email@hidden>
- Date: Thu, 24 Aug 2006 12:54:07 +0200
I'm trying to implement a drag operation with an NSImageView
(dragging images out of it) and for this created:
myImageView (from NSImageView) with cellClass method (which returns
[myImageCell class])
myImageCell (from NSImageCell) with trackMouse method
Everything works fine if I create the view programmatically, but if I
set a view of type myImageView in a window with IB, the trackMouse
method of myImageCell isn't called. In the best case the cell of
myImageView will be of class myImageCell at initialization time but
not afterwards.
(Also put myImageView and myImageCell classes in IB file)
Does anybody know what's happening or where I can find help,
particulary for IB (I followed "Control and Cell Programming Topics
for Cocoa" rules)?
Is there a better way to implement dragging?
Many thanks, livio.
_______________________________________________
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