Re: Where is my bicycle?

2015-04-06 Thread Quincey Morris
On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Where is my bicycle gone? What am I doing wrong? Before this thread heads further into outer space… I suspect it [NSCharacterSet] is just broken. Look here, for example:

Re: Where is my bicycle?

2015-04-06 Thread Paul Scott
On Apr 6, 2015, at 9:57 AM, Charles Srstka cocoa...@charlessoft.com wrote: The problem, then, is likely the fact that NSCharacterSet considers a “character” simply as a UTF-16 code point, rather than a true Unicode character as Swift does. That should not matter. UTF-16 is a variable

Re: iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch?

2015-04-06 Thread Clark Smith Cox III
On Apr 6, 2015, at 07:52, Alex Zavatone z...@mac.com wrote: I'm running into an interesting issue I'm trying to track down under iOS 7 and 8. (Xcode 6.2, Mac OS 10.10.2) Our app downloads files and saves them within the app for display later when the user wants to bring them up. It

Re: Where is my bicycle?

2015-04-06 Thread Gerriet M. Denkmann
On 7 Apr 2015, at 00:15, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Where is my bicycle gone? What am I doing wrong? Before this thread heads further into outer space… I suspect it

Re: Navigationbar doesn't work in iOS 7.1 / 8 with XCODE 6.2

2015-04-06 Thread Alex Zavatone
Thanks for the image Wesley, but can you tell us what is wrong with it? Are we supposed to be seeing a navigation bar? Are you saying that the presentViewController:animated:completion: is covering up your view controller? It looks like you're asking the navigation controller to do the

Re: Navigationbar doesn't work in iOS 7.1 / 8 with XCODE 6.2

2015-04-06 Thread wesley.dias wesley.dias
In this point of my app i must show the navigationBar. I did the change that you've sent but still doesn't work. Here is the other section of my code: - (void)viewDidLoad { [ super viewDidLoad ]; mapReference = [ [ self.navigationController viewControllers ] objectAtIndex:1 ];

Re: Navigationbar doesn't work in iOS 7.1 / 8 with XCODE 6.2

2015-04-06 Thread Alex Zavatone
Don't worry about your English. It's better than my Portuguese. Are you trying to push a view controller onto the navigation stack, or are you trying to present a modal controller? Are you sure you want to use presentViewController? This is the replacement for presenting a modal controller.

Re: Where is my bicycle?

2015-04-06 Thread Greg Parker
On Apr 6, 2015, at 10:15 AM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Where is my bicycle gone? What am I doing wrong? The problem is that it’s unclear whether the “characters” in

Navigationbar doesn't work in iOS 7.1 / 8 with XCODE 6.2

2015-04-06 Thread wesley.dias wesley.dias
Hi, I have an application using the native API. After update my XCODE and my test phones( 01 iPhone 4S and 01 iPhone 5 ), the navigationbar in some parts of my app doesn't work. Can someone help me? There is no log errors... Thanks! -- Atenciosamente, Wesley C. Dias de Oliveira

Re: Navigationbar doesn't work in iOS 7.1 / 8 with XCODE 6.2

2015-04-06 Thread Alex Zavatone
A little more specifics will help us narrow this down. Updating from which version of Xcode to which version? Which version of iOS was this working on? Which version of iOS are you using now? We can't see your device, so we don't know what about the navigationBar doesn't work. Is it

Re: Where is my bicycle?

2015-04-06 Thread Quincey Morris
On Apr 6, 2015, at 12:29 , Greg Parker gpar...@apple.com wrote: my understanding is that when Cocoa says character it usually means UTF-16 code unit. @.length == 2, for example. Cocoa's string API designed when Unicode was still a true 16-bit character set. I would have said so, too,

Re: Where is my bicycle?

2015-04-06 Thread Jack Brindle
Have you checked the Font you are using to display the character string to see if it contains the bicycle character? If not, you probably won’t get the character you seek. - Jack On Apr 6, 2015, at 11:15 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 7 Apr 2015, at 00:15, Quincey

Getting two copies of my Today Extension

2015-04-06 Thread Rick Mann
I've started working on a Today Extension. I run it in a freshly-reset simulator, and there are two instances of it. That is, I can add two separate, apparently identical copies of my extension to the today view (one is added by default). Any idea what's going on? TIA, -- Rick Mann

Re: Where is my bicycle?

2015-04-06 Thread Michael Crawford
If you're unable to do what you need with Cocoa, maybe it would work to use ICU. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Apr 6, 2015 at 4:57

Re: Where is my bicycle?

2015-04-06 Thread Michael Crawford
Your bicycle showed up in my GMail in Firefox on Yosemite, but not in Safari on my Mom's iMac running Tiger. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On

Re: Where is my bicycle?

2015-04-06 Thread Greg Parker
On Apr 6, 2015, at 2:20 PM, pscott psc...@skycoast.us wrote: On 4/6/2015 12:29 PM, Greg Parker wrote: I'm not an expert here, but my understanding is that when Cocoa says character it usually means UTF-16 code unit. @.length == 2, for example. Cocoa's string API designed when Unicode

Re: Where is my bicycle?

2015-04-06 Thread pscott
On 4/6/2015 12:29 PM, Greg Parker wrote: I'm not an expert here, but my understanding is that when Cocoa says character it usually means UTF-16 code unit. @.length == 2, for example. Cocoa's string API designed when Unicode was still a true 16-bit character set. That would be UCS-2

Re: Where is my bicycle?

2015-04-06 Thread Greg Parker
On Apr 6, 2015, at 11:15 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: 2. characterSetWithCharactersInString seems to take only the lower 16 bits of the code points in the string. Bug. Works ok though, if all chars in the string have code points ≥ 0x1 (e.g. 턞) The

Re: Where is my bicycle?

2015-04-06 Thread pscott
On 4/6/2015 4:03 PM, Greg Parker wrote: On Apr 6, 2015, at 2:20 PM, pscott psc...@skycoast.us wrote: On 4/6/2015 12:29 PM, Greg Parker wrote: I'm not an expert here, but my understanding is that when Cocoa says character it usually means UTF-16 code unit. @.length == 2, for example. Cocoa's

Re: Where is my bicycle?

2015-04-06 Thread pscott
On 4/6/2015 4:29 PM, pscott wrote: On 4/6/2015 4:03 PM, Greg Parker wrote: On Apr 6, 2015, at 2:20 PM, pscott psc...@skycoast.us wrote: On 4/6/2015 12:29 PM, Greg Parker wrote: I'm not an expert here, but my understanding is that when Cocoa says character it usually means UTF-16 code unit.

Re: Where is my bicycle?

2015-04-06 Thread Quincey Morris
On Apr 6, 2015, at 16:29 , pscott psc...@skycoast.us wrote: But what you were describing *would* be UCS-2. To claim UTF-16 support, variable length encoding must be handled. It’s pretty much understood — on this list — that NSString is based on UTF-16, so we tend to cut the corner that’s

Re: Where is my bicycle?

2015-04-06 Thread Gerriet M. Denkmann
On 7 Apr 2015, at 05:44, Greg Parker gpar...@apple.com wrote: On Apr 6, 2015, at 11:15 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: 2. characterSetWithCharactersInString seems to take only the lower 16 bits of the code points in the string. Bug. Works ok though, if all chars

Re: Where is my bicycle?

2015-04-06 Thread Gerriet M. Denkmann
On 7 Apr 2015, at 03:42, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 6, 2015, at 12:29 , Greg Parker gpar...@apple.com wrote: my understanding is that when Cocoa says character it usually means UTF-16 code unit. @.length == 2, for example. Cocoa's string API

Making an array property without a backing store. How?

2015-04-06 Thread Daryle Walker
I have an object like: @interface MyClass : NSObject @property (readonly) NSArray * myDatumList; @property NSArray * myDataList; @end The second member is meant to be an actual data member, an array of mutable dictionaries. The first member isn’t supposed to have a backing store; accessing a

Re: Making an array property without a backing store. How?

2015-04-06 Thread Graham Cox
On 7 Apr 2015, at 12:01 pm, Daryle Walker dary...@mac.com wrote: I have an object like: @interface MyClass : NSObject @property (readonly) NSArray * myDatumList; @property NSArray * myDataList; @end The second member is meant to be an actual data member, an array of mutable

Re: iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch?

2015-04-06 Thread Mike Abdullah
On 6 Apr 2015, at 15:52, Alex Zavatone z...@mac.com wrote: I'm running into an interesting issue I'm trying to track down under iOS 7 and 8. (Xcode 6.2, Mac OS 10.10.2) Our app downloads files and saves them within the app for display later when the user wants to bring them up. It

Re: Swift: How to determine if a Character represents whitespace?

2015-04-06 Thread Roland King
I have no idea how a linguistic tagger determines whitespace and whether it uses the same definition for whitespace as NSCharacterSet does. Given that it's multi-language-aware I wouldn't be shocked to find it uses some entirely different way of enumerating textual elements. On 6 Apr 2015,

iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch?

2015-04-06 Thread Alex Zavatone
I'm running into an interesting issue I'm trying to track down under iOS 7 and 8. (Xcode 6.2, Mac OS 10.10.2) Our app downloads files and saves them within the app for display later when the user wants to bring them up. It appears that after the first launch, the files can't be found. Does

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-04-06 Thread Mike Abdullah
On 30 Mar 2015, at 18:00, Steve Mills sjmi...@mac.com wrote: On Mar 30, 2015, at 11:37:46, Mike Abdullah mabdul...@karelia.com wrote: Slightly less ugly idea, how about filling the background of your accessory view with something like 1% alpha? Would that be enough to direct clicks to

Re: Where is my bicycle?

2015-04-06 Thread Gerriet M. Denkmann
On 6 Apr 2015, at 23:36, Charles Srstka cocoa...@charlessoft.com wrote: On Apr 6, 2015, at 11:19 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: OS X 10.10.2 NSString *string = @abc  xyz;// BICYCLE = U+1F6B2 NSCharacterSet *charSet = [ NSCharacterSet

Where is my bicycle?

2015-04-06 Thread Gerriet M. Denkmann
OS X 10.10.2 NSString *string = @abc  xyz;// BICYCLE = U+1F6B2 NSCharacterSet *charSet = [ NSCharacterSet characterSetWithCharactersInString: string ]; BOOL pq = [ charSet longCharacterIsMember: 0x1F6B2 ]; NSLog(@%s CharacterSet from \%@\ contains %s

Gain access to resolved folder alias under sandboxing

2015-04-06 Thread Steve Mills
Say we have this structure: Pictures LotsOfFolderAliiInHere AliasToRealFolder RealFolder blah.jpg The sandboxed app lets the user choose a folder to process, and processing will use an NSDirectoryEnumerator to recursively go through all items in

Re: Where is my bicycle?

2015-04-06 Thread Sean McBride
On Mon, 6 Apr 2015 11:36:38 -0500, Charles Srstka said: Objective-C doesn’t support Unicode in source files (although Swift does). Yes it does, and it has for many years too. Cheers, -- Sean McBride, B. Eng

Re: Where is my bicycle?

2015-04-06 Thread Charles Srstka
On Apr 6, 2015, at 11:19 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: OS X 10.10.2 NSString *string = @abc  xyz;// BICYCLE = U+1F6B2 NSCharacterSet *charSet = [ NSCharacterSet characterSetWithCharactersInString: string ]; BOOL pq = [ charSet

Re: Where is my bicycle?

2015-04-06 Thread Steve Mills
On Apr 6, 2015, at 11:45:52, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: NSString *string = @abc  xyz;// BICYCLE = U+1F6B2 If this is so: why did my compiler not tell me about this? NSString *string = @abc 〄 xyz;// JAPANESE INDUSTRIAL STANDARD SYMBOL =

Re: Where is my bicycle?

2015-04-06 Thread Charles Srstka
On Apr 6, 2015, at 11:49 AM, Sean McBride s...@rogue-research.com wrote: On Mon, 6 Apr 2015 11:36:38 -0500, Charles Srstka said: Objective-C doesn’t support Unicode in source files (although Swift does). Yes it does, and it has for many years too. Huh, I just checked the documentation,

Re: Do NSStackView's actually work in a NSTableView?

2015-04-06 Thread Sebastien Boisvert
Yes I did make sure it had constraints. To better illustrate, I’ve uploaded my test app to a repo on github: https://github.com/sebastienboisvert/stackViewTableViewTest https://github.com/sebastienboisvert/stackViewTableViewTest The app has two windows: one with a single stackview only (which

Re: iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch?

2015-04-06 Thread Alex Zavatone
On Apr 6, 2015, at 11:45 AM, Mike Abdullah wrote: On 6 Apr 2015, at 15:52, Alex Zavatone z...@mac.com wrote: I'm running into an interesting issue I'm trying to track down under iOS 7 and 8. (Xcode 6.2, Mac OS 10.10.2) Our app downloads files and saves them within the app for display

Re: Where is my bicycle?

2015-04-06 Thread Gerriet M. Denkmann
On 6 Apr 2015, at 23:52, Steve Mills sjmi...@mac.com wrote: On Apr 6, 2015, at 11:45:52, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: NSString *string = @abc  xyz;// BICYCLE = U+1F6B2 If this is so: why did my compiler not tell me about this? NSString *string