Before I get too far down this road, I want to verify that my plan is going to work.

I'm implementing an NSTableView whose cells contain a variety of custom views. Depending on the cell, the view may require a custom cursor (for example, it may contain a link to a web page). My plan is to use -addCursorRect:cursor: in my cell view class's - resetCursorRects method, and use the view's entire rect as the cursor rect.

I'm assuming that this cursor rect is local to the *view* and when the table scrolls the view, the cursor rect will scroll with it. Is this a correct assumption?

What about when the cell scrolls *out* of the visible area of the table? Is my custom cell view released, in which case the cursor rect will be removed (in my dealloc), and all will be well in the world? Or is this something I'm going to have to handle manually? Tips on that?


Thanks!
randy
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to