Or something I didn't understand with cocoa bindings...
I am doing some Hillegass exercices, while adapting things here and there for xcode 3, which adds some spice to it...
I am encountering a weird thing with the RaiseMan application (end of chapter 6)
So I sort of followed Aaron Hillegass instructions (just replacing standard accessors with properties, and of course creating new classes in xcode rather than subclassing from ib...) to do this introduction to cocoa bindings, but the NSNumberFormatter is not working as I think it should...
The <<Expected Raise>> value is initialized to 5% when a new entry is done, and everything looks fine and acts fine (creation, deletion, sorting) until I change one <<expected raise>> pourcentage to 1 % and blam, every other purcentage is multiplied by 100... And creation of new entries display now 500%...
If the formatter is configured in IB to use a different multiplier than 1 (which I chose by default) the same weird thing happens : multiplier is subsequently multiplied by 100 when I try to change one purcentage to 1%...
I am a bit surprised...
phjo
P.S. : By playing with cocoa bindings in the inspector, I've had IB crash a few times on me... It seems very easy to obtain the message I paste :
-----------------------------
Assertion Failure
Interface Builder encountered an internal logic error. Choose "Continue" to continue running Interface Builder in an inconsistent state. Choose "Crash" to halt Interface Builder and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.
-------------------------------------
Note that I did file a bug with Crash Reporter, but as IB 3 seems many months old already, I would suppose Apple received millions of such bug reports already...
I am doing some Hillegass exercices, while adapting things here and there for xcode 3, which adds some spice to it...
I am encountering a weird thing with the RaiseMan application (end of chapter 6)
So I sort of followed Aaron Hillegass instructions (just replacing standard accessors with properties, and of course creating new classes in xcode rather than subclassing from ib...) to do this introduction to cocoa bindings, but the NSNumberFormatter is not working as I think it should...
The <<Expected Raise>> value is initialized to 5% when a new entry is done, and everything looks fine and acts fine (creation, deletion, sorting) until I change one <<expected raise>> pourcentage to 1 % and blam, every other purcentage is multiplied by 100... And creation of new entries display now 500%...
If the formatter is configured in IB to use a different multiplier than 1 (which I chose by default) the same weird thing happens : multiplier is subsequently multiplied by 100 when I try to change one purcentage to 1%...
I am a bit surprised...
phjo
P.S. : By playing with cocoa bindings in the inspector, I've had IB crash a few times on me... It seems very easy to obtain the message I paste :
-----------------------------
Assertion Failure
Interface Builder encountered an internal logic error. Choose "Continue" to continue running Interface Builder in an inconsistent state. Choose "Crash" to halt Interface Builder and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.
-------------------------------------
Note that I did file a bug with Crash Reporter, but as IB 3 seems many months old already, I would suppose Apple received millions of such bug reports already...