• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSView subclasses with IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSView subclasses with IB
      • From: Stephane <email@hidden>
  • Prev by Date: Re: Can't exec from a Cocoa app?
  • Next by Date: Re: Non-ASCII NSTask arguments
  • Previous by thread: Re: Tiger apps on Panther
  • Next by thread: Re: NSView subclasses with IB
  • Index(es):
    • Date
    • Thread