On Oct 14, 2015, at 5:44 AM, Lakshmi P Shanmugam <lakshmipriya....@gmail.com> 
wrote:

> Thanks for your response.

You're welcome.

> Hover over a cell in a Table. Framework calls NSCell 
> expansionFrameWithFrame:inView. And then calls NSCell cellSize. In our 
> overridden implementation of cellSize, we try to get the graphics context 
> using currentContext. This worked fine in all previous versions upto OSX 
> 10.11 and started failing now.
> Any idea on what could be wrong?

Yes, you're expecting a context to be current when there's no reason to expect 
that.  You were just getting unlucky before.  Yes, "unlucky", precisely because 
you were lulled into thinking what you were doing was OK and started depending 
on it, when it was never guaranteed and was subject to change, as you've now 
discovered.  Lucky would have been to have discovered the problem back when you 
first chose this implementation approach.

You need to change your implementation of -cellSize to not rely on there being 
any particular graphics context set up.  What were you using it for?

Regards,
Ken


_______________________________________________

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

This email sent to arch...@mail-archive.com

Reply via email to