-(void)drawRect : (NSRect)rect { imgRect.orgin = NSZeroPoint; imgRect.size = [appleImage size]; drawRect = [self bounds]; [ap
Just use these 2 Cocoa (no iOS) functions:
CGRect NSRectToCGRect(NSRect nsrect); NSRect NSRectFromCGRect(CGRect cgrect);
Have a look here to deepen the topic: http://cocoadev.com/CGRect