Re: Localization based on location

2012-06-04 Thread John Joyce
The standard way to localize an app is based on the user's preferred language. (on mac os x, the preferred language order of priority/availability ) Above and beyond that, you might have some case where your app has a reason to enable setting the preferred language at the app preferences level, o

Re: Localization based on location

2012-06-04 Thread Alexander Spohr
Am 03.06.2012 um 13:24 schrieb John Tall: > a user in Germany will get the entire apps in German even if > the rest of the phone is configured to run in English. This is not true as far as my iOS devices are concerned. I can switch it to any language and the next app start will show the app in

Re: Localization based on location

2012-06-04 Thread Marc Respass
Hi John, I am American but I've been studying Spanish for years so I run my Macs and iDevices in Spanish but everything else is American (dates, punctuation, etc.). It really sticks out (in a bad way) when an app is partially localized or, based on my language setting, makes assumptions other t

Re: Localization based on location

2012-06-04 Thread Fritz Anderson
On 4 Jun 2012, at 9:44 AM, Marc Respass wrote: > As for App Store and iTunes, on iOS 5.1.1 (and as long as I can remember), > those apps appear on my phone in Spanish. If I switch my language to English, > they will be in English. They don't change depending on where I am and I > completely agr

Re: ARC: cast C-array of CFTypeRef

2012-06-04 Thread Andreas Grosam
On Jun 4, 2012, at 6:25 PM, Andreas Grosam wrote: > > On Jun 4, 2012, at 4:15 PM, Jim Dovey wrote: > > > Eventually, I got this to "compile". Note sure if this ends up with correct > code, though: OK, this crashes badly, which is understandable :) But there seems no way to get the pointer t

NSTextView selection

2012-06-04 Thread ecir hana
Hello, I have a NSTextView and when I select all the text, all the lines get highlighted from left to right margin, except the last line which is highlighted from left margin to the last character on line. Please, is it possible to highlight the last line in the same way as the other ones are, i.e

Re: NSTextView selection

2012-06-04 Thread Kyle Sluder
On Jun 4, 2012, at 10:10 AM, ecir hana wrote: > Hello, > > I have a NSTextView and when I select all the text, all the lines get > highlighted from left to right margin, except the last line which is > highlighted from left margin to the last character on line. Please, is it > possible to highli

Re: NSTextView selection

2012-06-04 Thread Charlie Dickman
You can use an NSTextView delegate and NSFormatters to adjust the selection as it is being made. On Jun 4, 2012, at 1:10 PM, ecir hana wrote: > Hello, > > I have a NSTextView and when I select all the text, all the lines get > highlighted from left to right margin, except the last line which is

Re: NSTextView selection

2012-06-04 Thread Jens Alfke
On Jun 4, 2012, at 10:10 AM, ecir hana wrote: > I have a NSTextView and when I select all the text, all the lines get > highlighted from left to right margin, except the last line which is > highlighted from left margin to the last character on line. Please, is it > possible to highlight the last

Re: FSEventStream advice

2012-06-04 Thread Jerry Krinock
On 2012 Jun 03, at 16:13, Graham Cox wrote: > I'm going to see if it's something obvious, but given how subtle and > difficult this one has proved to be to track down (doesn't show up when > running with the debugger), I'm also considering replacing [kqueue] with > something new based on FSEve

Re: adding space for 'annotations' with a typesetter subclass

2012-06-04 Thread Ross Carter
On Jun 1, 2012, at 9:36 AM, Bill Dudney wrote: > I'm able to add additional space around a paragraph in my subclass of > NSATSTypesetter's implementation of > willSetLineFragmentRect:forGlyphRange:usedRect:baselineOffset:. However, I am > not getting what I expect as I tweak the parameters to th

can't hide scrollbar on NSTableView

2012-06-04 Thread Koen van der Drift
Ok, I'm stumped here. I have a few scrollable views in my window, two NSTableViews, and an NSTextView. I'd like to have the scrollbar to hide when not in use, and used the setting of the NSScrollView in IB in Xcode to do so. For the NSTextView it works, but for the NSTableViews the scrollbar won'

How to know if a file has been opened before?

2012-06-04 Thread Antonio Nunes
I have implemented window state restauration in an app. This works fine for re-opening documents that were open when the app was last quit. What I now want to do is extend that functionality to files that were not necessarily open when the app was last quit, but simply that have been opened at a

How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Vojtěch Meluzín
Hi, I just upgraded to Lion and XCode 4, because the previous version of GCC distributed with XCode 3 was just buggy. But I want to generate builds for 10.5 SDK, but using the new GCC. XCode 4 installer created SDKs for 10.6 and 10.7, how can I get the 10.5 SDK? And is it even possible to use it w

Re: How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Nick Zitzmann
On Jun 4, 2012, at 4:58 PM, Vojtěch Meluzín wrote: > Hi, > > I just upgraded to Lion and XCode 4, because the previous version of GCC > distributed with XCode 3 was just buggy. But I want to generate builds for > 10.5 SDK, but using the new GCC. XCode 4 installer created SDKs for 10.6 > and 10.7

Re: How to know if a file has been opened before?

2012-06-04 Thread Stephen J. Butler
You can use extended attributes to attach information to a file. Maybe serialize your session state as a plist and use setxattr/getxattr to manipulate it. Follows the file as it's moved around. PS: it's recommended that names for your attribute following the java style reverse DNS. For example, Ap

Re: How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Michael Hall
> > What new GCC? Xcode 4 dropped GCC in favor of LLVM. > gcc -version i686-apple-darwin11-llvm-gcc-4.2: no input files ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Jens Alfke
On Jun 4, 2012, at 3:58 PM, Vojtěch Meluzín wrote: > But I want to generate builds for > 10.5 SDK, but using the new GCC. XCode 4 installer created SDKs for 10.6 > and 10.7, how can I get the 10.5 SDK? You'll need to build with the 10.7 SDK that comes with Xcode. You can still build apps that t

Re: How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Nick Zitzmann
On Jun 4, 2012, at 5:26 PM, Michael Hall wrote: >> What new GCC? Xcode 4 dropped GCC in favor of LLVM. > > gcc -version > i686-apple-darwin11-llvm-gcc-4.2: no input files That's not GCC; that's LLVM-GCC, or LLVM with a GCC front-end. The real GCC was dropped from Xcode 4. Nick Zitzmann

Re: How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Michael Hall
On Jun 4, 2012, at 6:45 PM, Nick Zitzmann wrote: > > On Jun 4, 2012, at 5:26 PM, Michael Hall wrote: > >>> What new GCC? Xcode 4 dropped GCC in favor of LLVM. >> >> gcc -version >> i686-apple-darwin11-llvm-gcc-4.2: no input files > > That's not GCC; that's LLVM-GCC, or LLVM with a GCC front-e

Re: How to know if a file has been opened before?

2012-06-04 Thread Graham Cox
On 05/06/2012, at 8:50 AM, Antonio Nunes wrote: > The next question is, what is a handy way to keep track of the restoration > data that goes with the URL, since that will have to be saved separately from > the bookmark data. Using only the file name won't do, I need some kind of > unique ID,

Re: How to know if a file has been opened before?

2012-06-04 Thread Michael Hall
On Jun 4, 2012, at 5:50 PM, Antonio Nunes wrote: > I have implemented window state restauration in an app. This works fine for > re-opening documents that were open when the app was last quit. What I now > want to do is extend that functionality to files that were not necessarily > open when t

Re: How to know if a file has been opened before?

2012-06-04 Thread Fritz Anderson
On 4 Jun 2012, at 8:53 PM, Michael Hall wrote: > I was recently looking at some old finder api's. and some of it involves > fields that are pretty much obsolete. > I was trying to figure out which flag bit setting corresponded to the locked > checkbox in File>Get Info. At first I thought it was

Re: How to know if a file has been opened before?

2012-06-04 Thread Michael Hall
On Jun 4, 2012, at 9:00 PM, Fritz Anderson wrote: > On 4 Jun 2012, at 8:53 PM, Michael Hall wrote: > >> I was recently looking at some old finder api's. and some of it involves >> fields that are pretty much obsolete. >> I was trying to figure out which flag bit setting corresponded to the loc

Re: How to know if a file has been opened before?

2012-06-04 Thread Charles Srstka
On Jun 4, 2012, at 8:53 PM, Michael Hall wrote: > I was recently looking at some old finder api's. and some of it involves > fields that are pretty much obsolete. > I was trying to figure out which flag bit setting corresponded to the locked > checkbox in File>Get Info. At first I thought it wa

Re: How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Glenn L. Austin
On Jun 4, 2012, at 4:56 PM, Michael Hall wrote: > > On Jun 4, 2012, at 6:45 PM, Nick Zitzmann wrote: > >> >> On Jun 4, 2012, at 5:26 PM, Michael Hall wrote: >> What new GCC? Xcode 4 dropped GCC in favor of LLVM. >>> >>> gcc -version >>> i686-apple-darwin11-llvm-gcc-4.2: no input files >>