Every time that drawRect is called - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Every time that drawRect is called (/thread-8246.html)
Every time that drawRect is called - Miglu - Oct 26, 2010 06:55 AM
When a view's size is changed, NSTrackingAreas are offset. As they can not be moved, is the best solution to dealloc them and alloc and init new ones every time that drawRect is called after the view's size has changed? Or is there a better way to do custom buttons than using NSTrackingArea?