-(void)drawRect : (NSRect)rect { imgRect.orgin = NSZeroPoint; imgRect.size = [appleImage size]; drawRect = [self bounds]; [ap
If you encounter this in iOS, such as with UIKeyboardFrameEndUserInfoKey, it's important to know that NSRect is a subclass of NSValue.
UIKeyboardFrameEndUserInfoKey
NSRect
NSValue
if let rectValue = notification.userInfo?[UIKeyboardFrameEndUserInfoKey] as? NSValue { let rect = rectValue.CGRectValue() // Use your CGRect }