quicklookBackgroundColor() ??

2015-07-31 Thread Eden Smallwood
On X.8, at a minimum, when a user views a QuickLook of a standard item, the text is black and the background is white. ( Also, the QL Preview which is part of the Finder's Info window has the same traits, of course ). But if the user chooses to FullScreen the QL window, then

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-31 Thread Michael David Crawford
Blue-Eyed Cass promised me what every man desired but few can obtain mere hours after we friended each other on Facebook. I live with my mother in Ghana. I expect her really does, but the real tragedy of Blue-Eyed Cass is not that she depletes lonely men of all they possess, but that she does

FSFileManager strange behaviour on OS X

2015-07-31 Thread Tim Fletcher
Hi All, I have a Chose File dialog for the user to select a file (directory in this case). I retrieve the absolute path of the chosen directory. However, am not able to list the contents of the directory. In a Swift playground this is a little demo I made let fs =

Init String with bytes

2015-07-31 Thread Jan E. Schotsman
Hello, This has me puzzled: I am trying to initialize a Swift string with an NSData but the analyzer denies my approach. let dataValue:NSData = … let name = String( bytes:dataValue.bytes, length:dataValue.length, encoding:NSUTF8StringEncoding ) Analyzer complains: Cannot find an

Re: FSFileManager strange behaviour on OS X

2015-07-31 Thread Tim Fletcher
Hi Jens, Problem solved. Is your application sandboxed? But even so, I thought that NSOpen/SavePanel granted a sandboxed app permission to access the directory or file chosen by the user. (I’ve never actually used that functionality in a sandboxed app, though.) No, the app isn’t

Re: Init String with bytes

2015-07-31 Thread Charles Srstka
On Jul 31, 2015, at 2:51 PM, Jens Alfke j...@mooseyard.com wrote: Your code should work if you change String(…) to NSString(…). However, there’s no need to bother getting the bytes and length from the NSData, since there’s an initializer that takes just an NSData: if let name =

Re: Init String with bytes

2015-07-31 Thread Jens Alfke
On Jul 31, 2015, at 12:32 PM, Jan E. Schotsman jesc...@xs4all.nl wrote: But the NSString Reference says: convenience init?(bytes bytes: UnsafePointerVoid, length length: Int, encoding encoding: UInt ) NSString ≠ String. It’s not toll-free bridging like you’re used to with CF. String and

Reusable Detail View Controller for UISplitViewController?

2015-07-31 Thread Steve Mykytyn
This seems too easy - seems to work great. Can anyone point out a defect with this approach? I want to reuse the same view controller instance as the detail view controller for a UISplitViewController - my experience is that constantly instantiating view controllers can be sluggish. Simply

Re: FSFileManager strange behaviour on OS X

2015-07-31 Thread Jens Alfke
On Jul 31, 2015, at 11:46 AM, Tim Fletcher timothy.m.fletc...@gmail.com wrote: I have a Chose File dialog for the user to select a file (directory in this case). I retrieve the absolute path of the chosen directory. However, am not able to list the contents of the directory. Is your

Re: Swift NSOutlineView Illegal NSOutlineView data source

2015-07-31 Thread Raglan T. Tiger
sounds like the delegate isn't set so it don't know where to look for those or the delegate is set to the wrong object -rags On Jul 31, 2015, at 4:17 PM, Rick Mann rm...@latencyzero.com wrote: But I still get this at run time: *** Illegal NSOutlineView data source (NSViewController:

Re: Swift NSOutlineView Illegal NSOutlineView data source

2015-07-31 Thread Rick Mann
Yeah, it really does sound like that, doesn't it? You know what? I forgot to set the class name in the view controller in the storyboard. I'm an idiot. Thanks! On Jul 31, 2015, at 15:24 , Raglan T. Tiger r...@crusaderrabbit.net wrote: sounds like the delegate isn't set so it don't know

Re: Swift NSOutlineView Illegal NSOutlineView data source

2015-07-31 Thread Quincey Morris
On Jul 31, 2015, at 15:17 , Rick Mann rm...@latencyzero.com wrote: I'm not sure why those methods are optional if they must be implemented, but whatever. Incidentally, they’re optional because a bindings-based table doesn’t use them, but still might have a data source because the methods

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-31 Thread Graham Cox
On 30 Jul 2015, at 11:45 pm, Shane Stanley sstan...@myriad-com.com.au wrote: Olivia seems to get around. Maybe we should give her the benefit of the doubt. I sent her my credit card details and now she’s promised she’s going to come and visit once she’s sorted out the flights. You’ll all

Swift NSOutlineView Illegal NSOutlineView data source

2015-07-31 Thread Rick Mann
Googling for this suggests the problem is old, and not confined to Xcode 7b4, but the proposed solutions (deleting and re-typing the methods) doesn't work for me. Has anyone found a better solution? I have a simple NSOutlineView in source list mode, using an NSOutlineViewDataSource, in Swift

Re: Swift NSOutlineView Illegal NSOutlineView data source

2015-07-31 Thread Rick Mann
On Jul 31, 2015, at 15:33 , Quincey Morris quinceymor...@rivergatesoftware.com wrote: Incidentally, they’re optional because a bindings-based table doesn’t use them, but still might have a data source because the methods that support drag-and-drop are data source methods, not delegate

Re: NSManagedObject, NSString property retain vs copy

2015-07-31 Thread Jean-Daniel Dupas
Le 30 juil. 2015 à 18:26, Fritz Anderson fri...@manoverboard.org a écrit : On 30 Jul 2015, at 11:03 AM, Trygve Inda cocoa...@xericdesign.com wrote: It seems Apple is using retain rather than copy for NSString properties in an NSManagedObject subclass. I was always under the impression