Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Custom NSCell drawWithFrame:inView method not getting invoked in OSX 10.8
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mark FX" data-source="post: 1570015" data-attributes="member: 211556"><p>Apple's documentation advises not to invoke drawWithFrame:inView in you're own subclasses, but advises people to use the drawInteriorWithFrame:inView: method instead.</p><p></p><p>The documentation for the latest implementation of the NSCell class is listed below.</p><p></p><p><a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCell_Class/Reference/NSCell.html#//apple_ref/occ/instm/NSCell/drawInteriorWithFrame:inView:" target="_blank">https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCell_Class/Reference/NSCell.html#//apple_ref/occ/instm/NSCell/drawInteriorWithFrame:inView:</a></p><p></p><p>The reason it's not working in the later OSX versions, is because this particular NSCell method has been changed in the way it's implemented.</p><p>Once upon time this method used to be named drawWithFrameInView:, but that version has been deprecated now.</p><p></p><p>Regards Mark</p></blockquote><p></p>
[QUOTE="Mark FX, post: 1570015, member: 211556"] Apple's documentation advises not to invoke drawWithFrame:inView in you're own subclasses, but advises people to use the drawInteriorWithFrame:inView: method instead. The documentation for the latest implementation of the NSCell class is listed below. [URL="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCell_Class/Reference/NSCell.html#//apple_ref/occ/instm/NSCell/drawInteriorWithFrame:inView:"]https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCell_Class/Reference/NSCell.html#//apple_ref/occ/instm/NSCell/drawInteriorWithFrame:inView:[/URL] The reason it's not working in the later OSX versions, is because this particular NSCell method has been changed in the way it's implemented. Once upon time this method used to be named drawWithFrameInView:, but that version has been deprecated now. Regards Mark [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Custom NSCell drawWithFrame:inView method not getting invoked in OSX 10.8
Top