choose core data store file at app launch

2013-03-29 Thread Martin Hewitson
Dear list, I remember seeing the functionality in some apps where one can hold the option key while launching an app to allow the user to choose which app data store to launch. So is this a core-data app functionality that's already built in to the frameworks, or does one need to implement

Re: choose core data store file at app launch

2013-03-29 Thread Richard Heard
So you can easily recreate this behaviour yourself by doing this on launch. -(void)applicationDidFinishLaunching:(NSNotification *)aNotification{ if (([NSEvent modifierFlags] NSAlternateKeyMask) != 0){ //holding down option on launch //Do the optional path stuff } else {

UITextView partially obscured by UINavigationBar

2013-03-29 Thread Koen van der Drift
Hi, I have set up a view with only one UITextView and a UINavigationBar in a xib file, see the screenshot here: http://db.tt/WiR8lIXe When I run the app, the top part of the text is obscured by the UINavigationBar, even though I lined up the UITextView in IB below the UINavigationBar:

Re: UITextView partially obscured by UINavigationBar

2013-03-29 Thread Alex Zavatone
What are your settings in the property inspector panel? Also, in that scene, how is the hierarchy set up? Does this also happen in a storyboard or just in an XIB? On Mar 29, 2013, at 10:22 AM, Koen van der Drift wrote: Hi, I have set up a view with only one UITextView and a

Re: UITextView partially obscured by UINavigationBar

2013-03-29 Thread Koen van der Drift
On Mar 29, 2013, at 10:34 AM, Alex Zavatone z...@mac.com wrote: What are your settings in the property inspector panel? Any particular settings I should look at, there are a lot :) Also, in that scene, how is the hierarchy set up? It's just a UIView with a UITextView. Does this also

Re: UITextView partially obscured by UINavigationBar

2013-03-29 Thread Dennis
I would check to make sure your resizing constraints are set up properly. On Mar 29, 2013, at 7:22 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Hi, I have set up a view with only one UITextView and a UINavigationBar in a xib file, see the screenshot here: http://db.tt/WiR8lIXe

Re: UITextView partially obscured by UINavigationBar

2013-03-29 Thread Alex Zavatone
On Mar 29, 2013, at 10:49 AM, Koen van der Drift wrote: On Mar 29, 2013, at 10:34 AM, Alex Zavatone z...@mac.com wrote: What are your settings in the property inspector panel? Any particular settings I should look at, there are a lot :) Also, in that scene, how is the hierarchy set

Re: UITextView partially obscured by UINavigationBar

2013-03-29 Thread Koen van der Drift
On Mar 29, 2013, at 11:07 AM, Alex Zavatone z...@mac.com wrote: Aha! Can you create a storyboard and embed a vew within a nav controller and see if this happens? I'll create a sample project for you and email offline. I assume you're using Xcode 4.6.x? Thanks for sending that Alex.

Problem drawing in landscape orientation when using an addition UIWindow

2013-03-29 Thread Laurent Daudelin
So, I'm trying to use a replacement for UIActionSheet that I found on CocoaControls. It's called BlockActionSheet because, in addition to provide more customization to the sheet (like a larger title), it also works with blocks for the buttons you add. The only problem is when you rotate an

Re: Problem drawing in landscape orientation when using an addition UIWindow

2013-03-29 Thread Markus Spoettl
On 3/29/13 8:54 PM, Laurent Daudelin wrote: The only problem is when you rotate an iPhone in landscape mode, even when the sheet is not up. It uses a subclass of UIWindow to do its thing and after reading on the subject, it seems that UIWindow's never rotate and they always work as if in

NSUbiquityIdentityDidChangeNotification

2013-03-29 Thread koko
I register for NSUbiquityIdentityDidChangeNotification as shown below. + (void)registerForAvailibilityNotification:(id)object { MasterViewController *mvc = object; [[NSNotificationCenter defaultCenter] addObserver: mvc selector: @selector (iCloudAccountAvailabilityChanged:) name:

Re: NSUbiquityIdentityDidChangeNotification

2013-03-29 Thread Roland King
That's not what the documentation says it does. It's called when the user logs in or out of iCloud or changes the iCloud account they are logged into. It says nothing about enabling or disabling Documents and Data. On 30 Mar, 2013, at 11:52 AM, koko k...@highrolls.net wrote: I register for

Re: NSUbiquityIdentityDidChangeNotification

2013-03-29 Thread koko
The following is from the documentation. If a user signs out of iCloud, such as by turning off Documents Data in Settings, the ubiquityIdentityToken method returns nil. To enable your app to detect when a user signs out and signs back in, register for changes in iCloud account availability.

Re: NSUbiquityIdentityDidChangeNotification

2013-03-29 Thread Roland King
Hmm - only says that in the iCloud Fundamentals documentation, not in the actual description of the notification, which makes me a tad suspicious. When you turn off documents and data but leave iCloud signed in, does the ubiquity token actually return nil? If so, but you don't get the