Bug: Availability bindings on NSTextView cause attached NSNumberFormatter to fail

2014-01-10 Thread Peter
This cost me a couple of hours of sleep. OS 10.9.1, Xcode 5.0.2 In my app I have an NSTextView with an NSNumberFormatter attached to it. The latter limits input to integers of a specified range. As soon as bind the NSTextView’s enabled or editable properties to a simple boolean property in my

Corrected: Bug: Availability bindings on NSTextField cause attached NSNumberFormatter to fail

2014-01-10 Thread Peter
Hi Jonathan, my bad, sorry for the confusion! You are right, it is an NSTextField. Find the corrected text below. Am 10.01.2014 um 10:24 schrieb jonat...@mugginsoft.com: Hi Peter You say NSTextView. Do you mean NSTextField? Can we take a look at your demo project? Jonathan On 10

Re: Corrected: Bug: Availability bindings on NSTextField cause attached NSNumberFormatter to fail

2014-01-10 Thread jonat...@mugginsoft.com
Hi Peter The code as posted behaves as you explain. However, if you bind a value to the NSTextField then things work as expected and the NSFormatter error sheet is displayed. I am not sure exactly why this occurring - perhaps some else can throw some light on it. Perhaps the binding mechanics

NSUserDefault crash issue

2014-01-10 Thread Arjun SM
Hi all, I am having a crash issue when i am trying to set the dictionary for persistent domain. *Scenario* When user logs in to my application, my app receives a few settings from a server which is updated to NSMutableDictionary. After updating the dictionary , I set the the values for the

Re: NSUserDefault crash issue

2014-01-10 Thread jonat...@mugginsoft.com
On 10 Jan 2014, at 13:47, Arjun SM arjun...@gmail.com wrote: Hi all, I am having a crash issue when i am trying to set the dictionary for persistent domain. *Scenario* When user logs in to my application, my app receives a few settings from a server which is updated to

Re: Validation of fields in a navigation stack

2014-01-10 Thread Alex Zavatone
I've had to deal with something that sounds similar in a UITableView earlier this week. FYI, completing an edit by dismissing the keyboard commits the changed data to the datasource. Simply tapping a field in a cell invokes editing. Now, I'm not sure if this is the best way, or the standard

NSMapTable with weak refs on 10.7

2014-01-10 Thread Jens Alfke
I’m using an NSMapTable object with weak value references, in an ARC-based target. Unfortunately I’ve been told that this code crashes on OS X 10.7 — initializing the table raises an exception Requested configuration not supported.” I’ve tried adjusting the option flags but without success. Is

Re: NSMapTable with weak refs on 10.7

2014-01-10 Thread Quincey Morris
On Jan 10, 2014, at 08:38 , Jens Alfke j...@mooseyard.com wrote: Is there a way to make this work, or does NSMapTable just not support ARC-based weak references in 10.7? IIRC, NSMapTable was simply unsafe to use with ARC until the introduction of ‘NSMapTableWeakMemory’ in 10.8, and I had to

stringByAddingPercentEncodingWithAllowedCharacters: and friends

2014-01-10 Thread Shane Stanley
The Mavericks Foundation release notes say: Added -stringByAddingPercentEncodingWithAllowedCharacters: and -stringByRemovingPercentEncoding. -stringByAddingPercentEncodingWithAllowedCharacters: is intended to percent-encode an URL component or subcomponent string, NOT the entire URL

Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends

2014-01-10 Thread Quincey Morris
On Jan 10, 2014, at 16:41 , Shane Stanley sstan...@myriad-com.com.au wrote: I can't see the NSString methods in NSString.h, and the predefined NSCharacters sets aren't listed in the class reference for NSCharacterSet, nor in NSCharacterSet.h. Anyone know where they live? Time to learn

Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends

2014-01-10 Thread Greg Parker
On Jan 10, 2014, at 4:41 PM, Shane Stanley sstan...@myriad-com.com.au wrote: The Mavericks Foundation release notes say: Added -stringByAddingPercentEncodingWithAllowedCharacters: and -stringByRemovingPercentEncoding. -stringByAddingPercentEncodingWithAllowedCharacters: is intended to

Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends

2014-01-10 Thread Shane Stanley
On 11 Jan 2014, at 12:01 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: Time to learn Command-Shift-O! Thanks! I was option-clicking, but that was coming up empty. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/