NSViews and cursorRects and scrolling, oh my!
NSViews and cursorRects and scrolling, oh my!
- Subject: NSViews and cursorRects and scrolling, oh my!
- From: Randall Meadows <email@hidden>
- Date: Fri, 5 Dec 2008 11:18:30 -0700
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 (email@hidden)
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:
This email sent to email@hidden