Re: NSSavePanel runModal isn't working in sandbox?

2012-06-05 Thread Graham Cox
On 06/06/2012, at 2:55 PM, Samuel Williams wrote: > Hi Graham, > > What dev forums are you talking about? > If you are a registered apple developer, there are a number of forms at developer.apple.com, including one for sandboxing issues. > The fact is that the documentation on Apple's site

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-05 Thread Samuel Williams
Hi Graham, What dev forums are you talking about? NSSavePanel seems completely unusable. Even the simplest example isn't working for me: - (void) finishLaunching { [super finishLaunching]; NSSavePanel * savePanel = [NSSavePanel savePanel]; [savePanel runModal]; NSLog(@"End model session for sa

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-05 Thread Graham Cox
Are you aware that this class is riddled with severe bugs under the current sandbox implementation? The dev forums will reveal more details. Also, NSSavePanel doesn't inherit from NSPanel under sandboxing, so if you are expecting to use inherited methods, they don't work. File bugs - we can't

NSSavePanel runModal isn't working in sandbox?

2012-06-05 Thread Samuel Williams
Hi, I'm having trouble with NSSavePanel runModal in a sandbox: NSSavePanel * savePanel = [NSSavePanel savePanel]; savePanel.title = @"Document Migration"; savePanel.directoryURL = url; savePanel.nameFieldStringValue = [url lastPathComponent]; savePanel.allowedFileTypes = [NSArray arrayWithObject:

Re: can't hide scrollbar on NSTableView

2012-06-05 Thread Koen van der Drift
On Jun 5, 2012, at 7:16 PM, Corbin Dunn wrote: > > On Jun 4, 2012, at 11:48 AM, Koen van der Drift > wrote: > >> 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 s

Re: can't hide scrollbar on NSTableView

2012-06-05 Thread Corbin Dunn
On Jun 4, 2012, at 11:48 AM, Koen van der Drift wrote: > 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 t

Re: How to get SDK 10.5 on XCode 4?

2012-06-05 Thread Jens Alfke
On Jun 5, 2012, at 10:40 AM, Nick Zitzmann wrote: > That is correct; LLVM-GCC is just a front-end for LLVM that accepts GCC-style > command line options. Not really. It's more correct to say that it _is_ GCC, just with the code generator replaced by LLVM. The parsing is 100% GCC. The benefit i

Re: Date Added Attribute?

2012-06-05 Thread Charles Srstka
On Jun 5, 2012, at 12:39 PM, Laurent Daudelin wrote: > I have read about that new "date added" attribute in Lion in the Finder and I > tried to get more information about it but I must not be good at formulating > my Google queries correctly, I only get vaguely related results. I also did a > s

Re: How to get SDK 10.5 on XCode 4?

2012-06-05 Thread Nick Zitzmann
On Jun 5, 2012, at 10:45 AM, Vojtěch Meluzín wrote: > Ok, so I installed XCode 4 and I also installed XCode 3 from my backup > installer. Now XCode 4 conrtains the Developer stuff, SDKs etc., but only > 10.6 and 10.7 as expected. But I cannot find XCode 3 SDKs, any idea where > they are? Or I'm n

Date Added Attribute?

2012-06-05 Thread Laurent Daudelin
I have read about that new "date added" attribute in Lion in the Finder and I tried to get more information about it but I must not be good at formulating my Google queries correctly, I only get vaguely related results. I also did a search in the doc for "date added" and "extended attributes" bu

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

2012-06-05 Thread Jens Alfke
On Jun 5, 2012, at 6:45 AM, Stephen J. Butler wrote: > One thing you could try is to mix the two ideas. Generate a GUID for > each file and store that in the extended attribute. Then use the GUID > to lookup your session information in an application CoreData store or > simple SQLite database. B

Re: How to get SDK 10.5 on XCode 4?

2012-06-05 Thread Vojtěch Meluzín
Ok, so I installed XCode 4 and I also installed XCode 3 from my backup installer. Now XCode 4 conrtains the Developer stuff, SDKs etc., but only 10.6 and 10.7 as expected. But I cannot find XCode 3 SDKs, any idea where they are? Or I'm not supposed to have both versions installed at the same moment

Re: CoreData, automatic migration and sandbox problems.

2012-06-05 Thread Dave Fernandes
On 2012-06-05, at 6:10 AM, Samuel Williams wrote: > Thanks for the info, > > I've spent quite a bit of time looking into how this would work. I found that > I can override makeDocumentWithContentsOfURL: and friends, but I'm at a loss > as to how to check whether the document needs to be migrat

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

2012-06-05 Thread Graham Cox
On 05/06/2012, at 10:51 PM, julius wrote: >> I don't bother culling out thumbnail files that are never needed (if the >> original file is deleted for example), I just let the cache grow as disk >> space is super-abundant. > > Am I right in thinking that if the finder is used to move or duplic

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

2012-06-05 Thread Stephen J. Butler
On Tue, Jun 5, 2012 at 3:14 AM, Antonio Nunes wrote: > On 5 Jun 2012, at 00:09, Stephen J. Butler wrote: > >> 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 mo

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

2012-06-05 Thread Bill Dudney
Thanks Ross, That appears to be doing the trick! Still trikes me as odd though that the other approach of tweaking the willSetLineFragmentRect: wouldn't work. I'll have to ask around at WWDC next week. Thanks again, -bd On Jun 4, 2012, at 12:45 PM, Ross Carter wrote: > On Jun 1, 2012, at 9:

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

2012-06-05 Thread julius
On Tue, 05 Jun 2012 10:16:11 +1000 Graham Cox wrote: > > I do something similar to map an SVG file to its thumbnail image, which is > costly to generate, and is stored separately from the original file. > > Once I've created the thumbnail (or whatever data you want to associate with > the fil

Re: CoreData, automatic migration and sandbox problems.

2012-06-05 Thread Samuel Williams
Thanks for the info, I've spent quite a bit of time looking into how this would work. I found that I can override makeDocumentWithContentsOfURL: and friends, but I'm at a loss as to how to check whether the document needs to be migrated. I can get the store metadata using [*NSPersistentStoreCoordi

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

2012-06-05 Thread Antonio Nunes
On 5 Jun 2012, at 00:09, Stephen J. Butler wrote: > 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. Thanks Stephen, I think the extended attribute

Re: How to get SDK 10.5 on XCode 4?

2012-06-05 Thread Ken Thomases
On Jun 4, 2012, at 6:39 PM, Jens Alfke wrote: > 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 SD

Re: How to get SDK 10.5 on XCode 4?

2012-06-05 Thread Stephane Sudre
On Tue, Jun 5, 2012 at 1:39 AM, Jens Alfke wrote: > > 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.