Re: rangeOfString behaves wierd

2013-12-08 Thread Igor Elland
Are you taking into account that 见,≠, and 見 are composed character sequences, not individual unichars? On 09 Dec 2013, at 08:46, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: In 10.9.0, Xcode 5.0.2 I added these lines to applicationDidFinishLaunching: NSString *a = @见=見見;//

Re: iOS screen physical size (or px density)

2013-11-26 Thread Igor Elland
If there isn't a proper API point for it, then I'm not doing it. I’m quite sure there’s no public API to get the physical screen size or otherwise differentiate between the regular size screen iPad and the mini. ___ Cocoa-dev mailing list

Re: iOS screen physical size (or px density)

2013-11-26 Thread Igor Elland
Can we have a moderator here closing this thread? It clearly devolved into ramblings against policy. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: iOS screen physical size (or px density)

2013-11-26 Thread Igor Elland
Probably because there’s no way to accurately know the physical screen size of a device attached via AirPlay or HDMI cable. The API would break in such cases. (And the same argument applies to adding more / less content on iPad mini screen because of its physical dimensions. It’s a bad

Re: iOS screen physical size (or px density)

2013-11-26 Thread Igor Elland
On 26 Nov 2013, at 15:51, Roland King r...@rols.org wrote: Until then, re-designing that one screen for the mini and letting it scale up for the normal iPad worked very well, so perhaps Apple were right in the first place, one iPad size does fit all, just not the size I started with. I

Re: Helping Arc with: PerformSelector may cause a leak because its selector is unknown

2013-10-22 Thread Igor Elland
This certainly helps: at least I get a clean compile. But telling the compiler about the type of selector to expect would be even better. Can this be done? You might want to look into using NSInvocation instead. Best, Elland ___ Cocoa-dev mailing

Re: Helping Arc with: PerformSelector may cause a leak because its selector is unknown

2013-10-22 Thread Igor Elland
I suggest against NSInvocation. I will just throw in a direct call to objc_msgSend. Care to elaborate? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Is inout documented anywhere?

2013-10-08 Thread Igor Elland
Hi, On Oct 8, 2013, at 1:29 PM, Dave d...@looktowindward.com wrote: I've never seen the inout keyword before! It is documented anyway? I tried searching but can't find anything that describes how it is supposed to work? You can refer to their meanings here

Re: How to convert an NSString to

2013-08-07 Thread Igor Elland
Hi, Have you tried: [@Ich möchte am Wettbewerb teilnehmen stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; Granted, this will also replace the ö with its percent escaped variant, which you probably want anyway. Best, Igor Elland On Aug 6, 2013, at 1:45 PM, Ronald Hofmann

Re: How to convert an NSString to

2013-08-07 Thread Igor Elland
Or if you just want to convert the spaces: string = [@Ich möchte am Wettbewerb teilnehmen stringByReplacingOccurrencesOfString:@ withString:@%20”]; Please avoid using that, if you really need **only** white space to be replaced, you want to use [@Ich möchte am Wettbewerb teilnehmen

Re: NSLinguisticTagger usable for non-english?

2013-08-05 Thread Igor Elland
Since you’re getting some result, I’ll assume you’re doing this in Cocoa, not CocoaTouch (that only really supports English). In this case, I don’t see why you need the lexical tagging, when the lemma tagging would suffice and should yield the expected result without your need to post-process

Re: Move cursor to previous/next line in UITextView

2013-06-07 Thread Igor Elland
Hi, I'm guessing you mean just going down and up in the text view lines, not actual text lines? If that's the case, I don't believe that's doable. But if you want to go to the next or previous sentence, you can use the new line character set and some linguistic analysis. I recommend you check

Re: rate limiting calls

2013-05-28 Thread Igor Elland
Hi, Quick question: how often are you calling setValue:? Every time it changes or is it inside an NSTimer/CADisplayLink? Can you give us more information on this particular flow? Cheers, Igor Ranieri On May 28, 2013, at 4:28 PM, Torsten Curdt tcu...@vafer.org wrote: I am getting a lot of

Re: Allow access to Documents folder in a sandbox app

2013-05-08 Thread Igor Elland
Hi, Is there any way to access the documents folder without letting user select it explicitly in a sandbox app? No. If I want to submit the app to the App Store, does the app have to be sandboxed? Yes. Cheers, Igor ___ Cocoa-dev mailing list

Re: Saving NSDictionary, Enumeration error

2013-05-07 Thread Igor Elland
Cab you provide a bit more detail? Is everything happening on to main thread? On May 7, 2013, at 14:39, Tamas Nagy tamas.lov.n...@gmail.com wrote: Hi, one of my users recently got an error when trying to save. My application is not document based, and I'm collecting the data to

iCloud timing out

2012-09-23 Thread Igor Elland
Hey there, I'm have a weird issue with iCloud (iOS). I launched the app and used it with one device, added a bunch of data. Now I try launching the app from other devices (tried 3 so far) and same issue happens: after almost a minute of black screen, the app launches empty and Xcode spills out

Re: iOS:targeting iOS3 through iOS6

2012-09-21 Thread Igor Elland
From my experience that's correct. Apple don't want you to support old hardware so they don't facilitate. When you update Xcode it even deleted old versions if it can find. Also new Xcode doesn't support compiling for pre armv7 (if I'm not mistaken here) meaning only 3GS and newer (iPad one is