Draw to an NSOpenGLView or NSView without subclassing them?

2009-02-26 Thread mirage_3d
hi there, i'm designing a simple engine for a small app i'm developing and would like to render some opengl in the interface. designing my engine, i would like to have all the different components to inherit from one main entity class that provides many engine-specific functions and data. problem i

const NSTimeZone?

2008-11-25 Thread mirage_3d
hi there, i'm trying to define a constant NSTimeZone object for a class i'm writing to use as a global constant. so far i haven't managed to do this directly or indirectly. i tried through NSString, NSData, NSArchiver and so far i've hit the wall. i was thinking that maybe i could use the C trick w

NSButton checkbox reports reverse state

2008-06-15 Thread mirage_3d
hi there, i have implemented an NSMatrix of checkboxes and had an outlet point to it. in my code i have changed the appearance of the buttons as well as their states in awakeFromNib. when i check the buttons' states in my action however, the buttons report the inverse state to what they really shou