Re: operatingSystemVersionString replacement

2013-10-25 Thread Kyle Sluder
On Oct 24, 2013, at 10:36 PM, Maxthon Chan xcvi...@me.com wrote: Well I prefer uname() as it is 1) POSIX standard, cross-platform method and 2) more fine grained as it tells minor versions apart. (e.g. I can tell Mavericks DP4 apart from Mavericks DP7 from Mavericks GM from App Store

Re: operatingSystemVersionString replacement

2013-10-25 Thread Greg Parker
On Oct 24, 2013, at 10:36 PM, Maxthon Chan xcvi...@me.com wrote: Well I prefer uname() as it is 1) POSIX standard, cross-platform method If you're already working around an OS bug then it should be acceptable to use OS-specific means to do so. 2) more fine grained as it tells minor versions

Re: operatingSystemVersionString replacement

2013-10-25 Thread Maxthon Chan
Maybe I am too used to tackle cross-platform Objective-C. Whenever I am doing system detection now I do the following: uname() and dlsym(RTLD_DEFAULT, “UIApplicationMain”). This will reliably tell OS X (Darwin/NULL), iOS (Darwin/valid pointer), Linux+GNUstep (Linux/NULL) and

Re: NSTextField, maximum string length, bindings and NSFormatter

2013-10-25 Thread jonat...@mugginsoft.com
Keary On 25 Oct 2013, at 00:21, Keary Suska cocoa-...@esoteritech.com wrote: On Oct 24, 2013, at 9:01 AM, jonat...@mugginsoft.com wrote: Have I missed something or is access to a decent NSFormatter subclass to handle NSTextField string length limiting troublesome? I am currently using

[SOLVED] Re: Spotlight importer don't work anymore under Mavericks (sandbox error)

2013-10-25 Thread Giacomo Tufano
Hi, for the records (and future searchers): As per https://developer.apple.com/library/mac/qa/qa1773/_index.html (I should have read this one before) the importer have to be signed with the same identity and entitled for com.apple.security.app-sandbox. To check if the importer works you *must*

NSPopupButton and content values binding transformer

2013-10-25 Thread jonat...@mugginsoft.com
Value transformers applied to NSPopupButton have some idiosyncrasies. http://stackoverflow.com/questions/12505764/nspopupbutton-bindings-with-value-transformer I have applied a transformer to an NSPopupButton content values binding but the IB configured transformer does not seem to be applied. I

Re: operatingSystemVersionString replacement

2013-10-25 Thread Gary L. Wade
Not to say using the OS version number is right in your case, but when I need a parseable OS version number without relying upon Gestalt, I get the ProductVersion key from /System/Library/CoreServices/SystemVersion.plist and parse that into an NSIndexPath, which works great with encapsulating

Re: operatingSystemVersionString replacement

2013-10-25 Thread Sean McBride
On Fri, 25 Oct 2013 06:02:23 -0700, Gary L. Wade said: Not to say using the OS version number is right in your case, but when I need a parseable OS version number without relying upon Gestalt, I get the ProductVersion key from /System/Library/CoreServices/SystemVersion.plist and parse that into

Autolayout wrt Cassowary

2013-10-25 Thread David Hoerl
There have been numerous posts on the internet saying that Apple used Cassowary as the basis of Autolayout. If so, then why isn't there any mention of this in the Autolayout document. Or was this a white room re-write? Cassowary is open source and as far as I can tell requires no

Re: operatingSystemVersionString replacement

2013-10-25 Thread Gary L. Wade
For any Apple people who care, there's now rdar://15320964 to help with this conundrum. For anyone else, feel free to file your bugs. -- Gary L. Wade http://www.garywade.com/ On 10/25/2013 8:53 AM, Sean McBride s...@rogue-research.com wrote: On Fri, 25 Oct 2013 06:02:23 -0700, Gary L. Wade

Re: Autolayout wrt Cassowary

2013-10-25 Thread David Hoerl
I believe there are other fora for shooting the breeze. — F NOTE: BELOW IS NOT A TECHNICAL POST PER SE - WILL BE LAST ONE FROM ME I hope this doesn't waste anyone else's time. This is absolutely technical in the sense that if so, it provides another resource to better understand the

NSTableview row-based, not redrawing on 10.9

2013-10-25 Thread Martin Hewitson
Dear list, I have a view-based tableview. In the row views there are some textfields which are a subclass of NSTextField. Since moving to 10.9, the textfields which are in rows which are out of view when the table loads are rendered all black when those rows are scrolled into view. This is new

Re: Autolayout wrt Cassowary

2013-10-25 Thread Caylan Larson
David, I’m a new cocoa dev. You inspired me to watch WWDC 2011, Session 103 - Cocoa Autolayout. The final minute of this video drops a shout-out and big Thank You to the two folks at the Computer Science department at Washington for their work on Cassowary. To others out there: are there

core data merge errors on 10.9

2013-10-25 Thread Martin Hewitson
Dear list, I have two different core data apps, both of which are exhibiting similar behaviour in that they sometimes (for some changes in some properties) can’t save the MOC. Here is an example error I get when using [moc save:error] Error Domain=NSCocoaErrorDomain Code=133020 Could not

Re: NSTableview row-based, not redrawing on 10.9

2013-10-25 Thread Michael Cinkosky
I believe you need to implement a new delegate method for this table: +(BOOL) isCompatibleWithResponsiveScrolling { return NO; } https://developer.apple.com/library/prerelease/mac/releasenotes/AppKit/RN-AppKit/index.html#//apple_ref/doc/uid/TP3741-CH2-SW28 Michael On Oct 25,

Re: Not documented: NSArray responds to -allObjects

2013-10-25 Thread Jerry Krinock
On 2013 Oct 24, at 09:18, Andy Lee ag...@mac.com wrote: Might be worth filing a Radar requesting that method be made official published API like it is for the other collection classes… Well, I did a document feedback, but not on NSArray. Instead I suggested adding text like the following

Re: NSTableview row-based, not redrawing on 10.9

2013-10-25 Thread Martin Hewitson
Implementing this doesn’t seem to make any difference. I checked that it is called. In any case, the release notes say that responsive scrolling is not active if you link against 10.7, which I do. Martin On 25 Oct 2013, at 08:47 pm, Michael Cinkosky mcinko...@thirdstreetsoftware.com wrote:

MKLaunchOptionsMapTypeKey in OS X Mavericks

2013-10-25 Thread James Merkel
In OS X Mavericks, has anyone used MKLaunchOptionsMapTypeKey to open a map in Hybrid mode, for example: NSDictionary *options = @{MKLaunchOptionsMapTypeKey: [NSNumber numberWithUnsignedInteger:MKMapTypeHybrid]}; followed by openInMapsWithLaunchOptions: ? The map opens in Hybrid mode,

Re: Autolayout wrt Cassowary

2013-10-25 Thread Holmberg Bertil
WWDC 2012 offered three good sessions on auto layout. The first one, Introduction to Auto Layout for iOS and OS X also has a link to the Cassowary article. WWDC 2013 session 406 has an update to Auto Layout in Xcode 5 which is much improved. You should watch this. Although Apple quite

OBJC_PRINT_REPLACED_METHODS logs a lot of noise?

2013-10-25 Thread Jerry Krinock
On 2013 Oct 24, at 10:35, Sean McBride s...@rogue-research.com wrote: You could also set OBJC_PRINT_REPLACED_METHODS=YES in the environment. That's how I originally discovered my firstObject NSArray category method wasin conflict. I tried it. When I launch my app with that I get 100 log

Allowing users to customize keyboard shortcuts

2013-10-25 Thread Rick Mann
I’m working on a complex app with lots of commands. I’m considering eventually allowing users to customize the keyboard shortcuts they use. I don’t want to build all that UI now, but I thought it might make sense to build in the underpinnings now. What techniques do people use to implement

Re: Allowing users to customize keyboard shortcuts

2013-10-25 Thread Mills, Steve
On Oct 25, 2013, at 18:37, Rick Mann rm...@latencyzero.com wrote: I’m working on a complex app with lots of commands. I’m considering eventually allowing users to customize the keyboard shortcuts they use. I don’t want to build all that UI now, but I thought it might make sense to build

Re: operatingSystemVersionString replacement

2013-10-25 Thread August Mueller
On Oct 25, 2013, at 10:53 AM, Sean McBride s...@rogue-research.com wrote: I agree with others that NSAppKitVersionNumber and friends are usually preferable, but sometimes it is useful/required to get the actual numbers 10, 8, and 5 in a parseable/non-localized way. Parsing uname results