Re: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-22 Thread Scott A Andrew
Why not have an update flags function and a set of booleans that represent the flags. @interface someInterface { BOOL _isFoo; BOOL _isBar; } @property (nonatomic, readonly, assign) BOOL isFoo; @property (nonatomic, readonly, assign) BOOL isBar; -(void) updateFlags:(int)bits; @en

Re: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-21 Thread Scott A Andrew
Check out http://newwavedigitalmedia.com/blog/?p=132 I'll fix the image issues shortly. But basically it shows how to setup KVO for calculated values. So you could create KVO for each state using keyPathsForValuesAffecting then implement getters and setters. So each state could be handled via

10.8 32bit ioctl

2012-08-11 Thread Scott A Andrew
I am needing to write an native extension for air and Flash builder that needs to be 32bit. However when i call ioctl in a 32 bit application it fails with -1. If i flip the app to 64 bit it works. I need a bit of help understanding why 32bit ioctl doesn't work. My questions, maybe someone at

Macbook Pro retina display and simulator question.

2012-06-11 Thread Scott A Andrew
How does the new 15" retina display handle the iOS simulator. Does the simulator work in pixels or points. Is it going to be just like working a 15" today since text is in points and 12 pt is really 24? Or will it only take 1024x768 + bezel pixels? The one reason i have a 17" is that the simula

Re: @synchronized crashing with ARC

2012-05-31 Thread Scott A Andrew
My guess is that you are crashing because kMyVLFContext is not an objective C object. According to the Apple documentation (https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocThreading.html#//apple_ref/doc/uid/TP30001163-CH19-SW1): The @synchronized() d