Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends

2014-01-10 Thread Shane Stanley
On 11 Jan 2014, at 12:01 PM, Quincey Morris wrote: > Time to learn Command-Shift-O! Thanks! I was option-clicking, but that was coming up empty. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends

2014-01-10 Thread Greg Parker
On Jan 10, 2014, at 4:41 PM, Shane Stanley wrote: > The Mavericks Foundation release notes say: > >> Added -stringByAddingPercentEncodingWithAllowedCharacters: and >> -stringByRemovingPercentEncoding. >> -stringByAddingPercentEncodingWithAllowedCharacters: is intended to >> percent-encode an U

Re: stringByAddingPercentEncodingWithAllowedCharacters: and friends

2014-01-10 Thread Quincey Morris
On Jan 10, 2014, at 16:41 , Shane Stanley 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 Command-Shift-O!

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: NSMapTable with weak refs on 10.7

2014-01-10 Thread Quincey Morris
On Jan 10, 2014, at 08:38 , Jens Alfke 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 write my own map

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: 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

Re: NSUserDefault crash issue

2014-01-10 Thread jonat...@mugginsoft.com
On 10 Jan 2014, at 13:47, Arjun SM 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 NSMutableDictionary. > A

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 domai

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

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 > >

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