Re: Resizing issue with NSSplitView

2014-09-02 Thread Kyle Sluder
On Tue, Sep 2, 2014, at 11:39 PM, Peter Hudson wrote: > Hi All > > I have recently migrated a project to xCode 5.1.1 and OSX 10.9.4 > > In one of the windows of the app I have an NSSplitView. > Previously, I could adjust the relative size of the splits in Interface > Builder - and when I ran t

Resizing issue with NSSplitView

2014-09-02 Thread Peter Hudson
Hi All I have recently migrated a project to xCode 5.1.1 and OSX 10.9.4 In one of the windows of the app I have an NSSplitView. Previously, I could adjust the relative size of the splits in Interface Builder - and when I ran the app, the splits would appear as I set them. Mysteriously, Inter

Re: Best practice for creating a temporary file

2014-09-02 Thread Jens Alfke
> On Sep 2, 2014, at 4:18 PM, Quincey Morris > wrote: > > Then is there any downside to letting it appear beside the final location? It's not the location that bugs me, so much as that it never gets cleaned up. So the parent directory starts accumulating more and more of these empty "(Docum

Re: Best practice for creating a temporary file

2014-09-02 Thread Kyle Sluder
On Tue, Sep 2, 2014, at 06:10 PM, Jens Alfke wrote: > > > On Sep 2, 2014, at 4:05 PM, Quincey Morris > > wrote: > > > > I get a URL to a new folder in the private (secure) temporary directory, > > and *not* in the parent of ‘importURL’. I don’t know why you’re seeing > > something different.

Re: My services in my own app

2014-09-02 Thread Scott Ribe
On Sep 2, 2014, at 12:45 PM, Georg Seifert wrote: > I created a small test app following the example on apples documentation. The > service works fine if invoked from other apps but if you select it from > within the same app with text selected in a text view, the app menu will stay > highligh

Re: My services in my own app

2014-09-02 Thread dangerwillrobinsondanger
Sent from my iPhone > On 2014/09/03, at 3:45, Georg Seifert wrote: > > Here are some more information. > > I created a small test app following the example on apples documentation. The > service works fine if invoked from other apps but if you select it from > within the same app with text

Re: Best practice for creating a temporary file

2014-09-02 Thread Quincey Morris
On Sep 2, 2014, at 16:10 , Jens Alfke wrote: > This is on iOS. Then is there any downside to letting it appear beside the final location? Where does an app like Pages create its autosaves? (AFAIK, autosave uses this same API for its temp folder.) IIRC, in iOS the recommendation is to put docu

Re: Best practice for creating a temporary file

2014-09-02 Thread Jens Alfke
> On Sep 2, 2014, at 4:05 PM, Quincey Morris > wrote: > > I get a URL to a new folder in the private (secure) temporary directory, and > *not* in the parent of ‘importURL’. I don’t know why you’re seeing something > different. This is on iOS. (On Mac OS I do see the file appear in the tempor

Re: Best practice for creating a temporary file

2014-09-02 Thread Quincey Morris
On Sep 2, 2014, at 09:47 , Jens Alfke wrote: > So far I've been using NSItemReplacementDirectory, but this has a couple of > problems: > (1) It creates a new visible directory right next to the permanent location, > called "(A Document being saved by $APP") where $APP is the app name. FWIW, th

Re: Best practice for creating a temporary file

2014-09-02 Thread Scott Ribe
Maybe you could: - write the temp path into a file in Application Support or someplace where you can read it at launch - make a temp invisible file at that temp path in the actual destination folder - rename the temp invisible file and make it visible - clear the temp path where you'd written it

Re: Best practice for creating a temporary file

2014-09-02 Thread Jens Alfke
> On Sep 2, 2014, at 10:45 AM, Kyle Sluder wrote: > > .TemporaryItems doesn't get cleaned up automatically AFAIK, so I don't > think you'll gain anything by trying to use it. On my system right now there's nothing in it older than 2 days or so, so I suspect it does get cleaned up (at least on

Re: My services in my own app

2014-09-02 Thread Georg Seifert
Here are some more information. I created a small test app following the example on apples documentation. The service works fine if invoked from other apps but if you select it from within the same app with text selected in a text view, the app menu will stay highlighted for 30s and after that

Re: Best practice for creating a temporary file

2014-09-02 Thread excelpbhardwaj...@gmail.com
Probably NSURLSessionDownloadTask fits this requirement. It downloads the data to a temporary file which can be read or moved to a permanent location. The temporary file gets deleted as soon as control returns from the completion handler. --Original message-- From: Jens Alfke To: "Coc

Re: Best practice for creating a temporary file

2014-09-02 Thread Kyle Sluder
On Tue, Sep 2, 2014, at 11:47 AM, Jens Alfke wrote: > > It looks as though there _is_ a per-volume temporary-items directory, > because on my non-boot partition I see a top-level invisible directory > called ".TemporaryItems" with a subfolder for each user-ID. But how do I > find it programmatical

Best practice for creating a temporary file

2014-09-02 Thread Jens Alfke
I'm downloading data that will eventually be saved as a file in a specific directory. During the download I write the data to a temporary file since it can be arbitrarily large; then on completion I move the temporary file to its final location. So I need to locate a temporary-files directory th

Re: Converting an existing Mac project to use storyboard

2014-09-02 Thread Allison Newman
Ahh, thank you! Yup, that fixes the problem :)  On Sep 02, 2014, at 05:19 AM, Roland King wrote: On 2 Sep 2014, at 8:11 pm, Allison Newman wrote: I don't have a key called NSMainStoryBoardFile in the pulldown menu, but I do have a key called Main storyboard file name base (note: not t

Re: Converting an existing Mac project to use storyboard

2014-09-02 Thread Roland King
> On 2 Sep 2014, at 8:11 pm, Allison Newman wrote: > > I don't have a key called NSMainStoryBoardFile in the pulldown menu, but I do > have a key called Main storyboard file name base (note: not the iphone / iPad > version), and the value I put in for that key is 'Main', which matches the > n

Re: Converting an existing Mac project to use storyboard

2014-09-02 Thread Allison Newman
I don't have a key called NSMainStoryBoardFile in the pulldown menu, but I do have a key called Main storyboard file name base (note: not the iphone / iPad version), and the value I put in for that key is 'Main', which matches the name of my storyboard file, which is called 'Main.storyboard'. I

Re: Converting an existing Mac project to use storyboard

2014-09-02 Thread Roland King
> On 2 Sep 2014, at 6:33 pm, Allison Newman wrote: > > I’m trying to convert an existing project over to using storyboards on > Yosemite, but I can’t get my main storyboard to load. > > What I’ve tried: > Checking Apple documentation. The Apple documentation for storyboards on the > Mac is cl

Converting an existing Mac project to use storyboard

2014-09-02 Thread Allison Newman
I’m trying to convert an existing project over to using storyboards on Yosemite, but I can’t get my main storyboard to load. What I’ve tried: Checking Apple documentation. The Apple documentation for storyboards on the Mac is close to non-existant at the moment, or at least I haven’t been able t

Re: How to Validate CoreData attribute value for uniqueness

2014-09-02 Thread Motti Shneor
Thanks Willeke, Jerry Krinock for your great hints and suggestions. Indeed I use cocoa-bindings to Core-Data model in my UI, via NSTableViewsColumns bound to a NSArrayController configured to work against the "Species" entity. That is why Core-Data's inherent KVO/KVC validation seemed the perfe