CALayer's geometryFlipped is initially reset to Layer-Hosting NSView's isFlipped when linked agains 10.8

2012-10-24 Thread Илья Кулаков
I've noticed that if an app is built against ML SDK, the geometryFlipped property is initially reset to NSView's isFlipped. Initially means at some point after view is added to the hierarchy. By reset I mean it discrads previously set value. However it's not bound to the isFlipped property.

default synchronous and full_fsync of Core Data Sqlite on iOS

2012-10-24 Thread Baoming Tian
Hi All, I read Apple's documentation Core Data Programming Guide recently. In chapter Persistent Store Features section Configuring a SQLite Store’s Save Behavior , they talked about different behavior of SQlite options synchronous and full_fsync on different version of Mac. However the

Re: Open untitled file in Document-based app

2012-10-24 Thread ecir hana
On Tue, Oct 23, 2012 at 11:58 PM, Graham Cox graham@bigpond.com wrote: If you return YES from -applicationOpenUntitledFile: the application will NOT open a new file - it has assumed that this method has done it and by returning YES that's what you're telling it. You want to either return

Re: Security-scoped bookmarks linked to code signing?

2012-10-24 Thread Mike Abdullah
On 24 Oct 2012, at 02:28, Graham Cox wrote: I'm using security-scoped bookmarks to save the location of certain folders between launches so that my sandboxed app works properly. We've had reports that resolving these bookmarks sometimes crashes deep inside the security-scoping resolution

Re: App Sandbox Container or Data Directory

2012-10-24 Thread Mike Abdullah
On 23 Oct 2012, at 23:06, Richard Somers wrote: On Oct 23, 2012, at 2:43 PM, Kyle Sluder k...@ksluder.com wrote: If by unapproved you mean my app's sandbox hasn't been extended to include this path then you are incorrect. The user can choose the destination, and the NSURL you get back from

Re: CALayer's geometryFlipped is initially reset to Layer-Hosting NSView's isFlipped when linked agains 10.8

2012-10-24 Thread Kyle Sluder
On Oct 22, 2012, at 6:58 PM, Илья Кулаков kulakov.i...@gmail.com wrote: I've noticed that if an app is built against ML SDK, the geometryFlipped property is initially reset to NSView's isFlipped. Initially means at some point after view is added to the hierarchy. By reset I mean it discrads

Plan for persisting preferences on iOS applications

2012-10-24 Thread Alex Zavatone
We're currently looking at expanding one of our applications from 1 office to up to 40. It's an app that needs an internal preference to be set and remembered through updates or reinstalls. Since (thanks to the joys of sandboxing), preferences can't be saved outside the app in the

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread Dave Fernandes
This doesn't answer your question, but it might not be against company policies to encrypt the data and store the ciphertext in iCloud. On 2012-10-24, at 11:24 AM, Alex Zavatone z...@mac.com wrote: We're currently looking at expanding one of our applications from 1 office to up to 40.

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread Mike Abdullah
On 24 Oct 2012, at 16:24, Alex Zavatone wrote: We're currently looking at expanding one of our applications from 1 office to up to 40. It's an app that needs an internal preference to be set and remembered through updates or reinstalls. I’m confused, what stops a regular preference

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread Alex Zavatone
On Oct 24, 2012, at 12:40 PM, Mike Abdullah wrote: On 24 Oct 2012, at 16:24, Alex Zavatone wrote: We're currently looking at expanding one of our applications from 1 office to up to 40. It's an app that needs an internal preference to be set and remembered through updates or

Re: Open untitled file in Document-based app

2012-10-24 Thread Sean McBride
On Wed, 24 Oct 2012 11:05:20 +0200, ecir hana said: I tried both to return NO and to not overriding the method but it still wont open any window at start up. The method(s) are not even called..? I think it has something to do with 10.8 restoring the previous state but I'm not sure how to force

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread David Duncan
On Oct 24, 2012, at 10:03 AM, Alex Zavatone z...@mac.com wrote: On Oct 24, 2012, at 12:40 PM, Mike Abdullah wrote: On 24 Oct 2012, at 16:24, Alex Zavatone wrote: We're currently looking at expanding one of our applications from 1 office to up to 40. It's an app that needs an

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread Alex Zavatone
On Oct 24, 2012, at 1:13 PM, David Duncan wrote: On Oct 24, 2012, at 10:03 AM, Alex Zavatone z...@mac.com wrote: On Oct 24, 2012, at 12:40 PM, Mike Abdullah wrote: On 24 Oct 2012, at 16:24, Alex Zavatone wrote: We're currently looking at expanding one of our applications from 1

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread David Duncan
On Oct 24, 2012, at 10:25 AM, Alex Zavatone z...@mac.com wrote: On Oct 24, 2012, at 1:13 PM, David Duncan wrote: On Oct 24, 2012, at 10:03 AM, Alex Zavatone z...@mac.com wrote: On Oct 24, 2012, at 12:40 PM, Mike Abdullah wrote: On 24 Oct 2012, at 16:24, Alex Zavatone wrote:

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread Kyle Sluder
On Oct 24, 2012, at 10:25 AM, Alex Zavatone z...@mac.com wrote: That's just amazing. Apple's doc writers need to do a much better job of explaining that even though the app is sandboxed, the sandbox exists outside the application and the app and the sandbox folders sit next to it within a

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread Alex Zavatone
On Oct 24, 2012, at 1:36 PM, David Duncan wrote: ... That's just amazing. Apple's doc writers need to do a much better job of explaining that even though the app is sandboxed, the sandbox exists outside the application and the app and the sandbox folders sit next to it within a folder

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread Alex Zavatone
I'm referring to the iOS docs. Sorry if I didn't specify that this was for iOS. On Oct 24, 2012, at 1:59 PM, Kyle Sluder wrote: On Oct 24, 2012, at 10:25 AM, Alex Zavatone z...@mac.com wrote: That's just amazing. Apple's doc writers need to do a much better job of explaining that even

Re: Open untitled file in Document-based app

2012-10-24 Thread ecir hana
On Wed, Oct 24, 2012 at 7:13 PM, Sean McBride s...@rogue-research.comwrote: That restoring state stuff is new in 10.7, not 10.8. You can test if it is responsible by turning it off in System Preferences General. Yes, it is! When I turn it off (Close windows when quitting an application) it

Re: Running a-foul of bindings with multiple-value subfields

2012-10-24 Thread Jerry Krinock
On 2012 Oct 23, at 10:09, Erik Stainsby erik.stain...@roaringsky.ca wrote: My question is ought I to be using (or subclassing) an arrayController for each of these lists ? And then binding through the selectedIndex or some such ? You're getting into murky waters there, Erik. I Subclassing

Need help passing a Secure Bookmark to an XPC Service

2012-10-24 Thread douglas welton
Hi All, I am sending a NSURL, encoded as a Secure Bookmark, from the main part of my sandboxed application to an XPC Service that handles a specific subtask. The data is making it across the interface, but when I try to resolve the bookmark back into an NSURL, I get the following error:

Re: Need help passing a Secure Bookmark to an XPC Service

2012-10-24 Thread Mike Abdullah
On 24 Oct 2012, at 22:56, douglas welton wrote: Hi All, I am sending a NSURL, encoded as a Secure Bookmark, from the main part of my sandboxed application to an XPC Service that handles a specific subtask. The data is making it across the interface, but when I try to resolve the

Re: Security-scoped bookmarks linked to code signing?

2012-10-24 Thread Graham Cox
On 24/10/2012, at 8:47 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Handling security-scoped bookmarks most certainly relies upon code-signing, as without you can’t create or resolve them. Are you dealing with app or document scoped bookmarks here? App-scoped. In dev and testing

Re: Security-scoped bookmarks linked to code signing?

2012-10-24 Thread Mike Abdullah
On 24 Oct 2012, at 23:31, Graham Cox wrote: On 24/10/2012, at 8:47 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Handling security-scoped bookmarks most certainly relies upon code-signing, as without you can’t create or resolve them. Are you dealing with app or document scoped

Re: Security-scoped bookmarks linked to code signing?

2012-10-24 Thread Graham Cox
On 25/10/2012, at 10:05 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 24 Oct 2012, at 23:31, Graham Cox wrote: On 24/10/2012, at 8:47 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Handling security-scoped bookmarks most certainly relies upon code-signing, as without you

Re: Cross-fading between layers

2012-10-24 Thread William Squires
I'm surprised it worked at all under any version of OS X, since you set the current layer to the new layer before committing the transition! Since it sees the two layers are the same, there's nothing to change, so nothing happens (I think…) On Oct 18, 2012, at 10:50 AM, Gabriel Zachmann wrote:

Prevent NSSplitView from resizing when replacing sub views

2012-10-24 Thread Qiang Y
Hello all, I have a view defined in NIB. In my code, I am replacing one subview of a NSSplitView with the NIB view. Unfortunately, NSSplitView resizes its subviews to satisfy the size of the NIB view, which makes the ui jumpy. Is there a way to resize the NIBView to satisfy the NSSplitView