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 n

Re: Swift NSOutlineView "Illegal NSOutlineView data source"

2015-07-31 Thread Rick Mann
> On Jul 31, 2015, at 15:33 , Quincey Morris > 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 methods. Yeah, I realized that

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 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 be sorry when I’m going

Re: Swift NSOutlineView "Illegal NSOutlineView data source"

2015-07-31 Thread Quincey Morris
On Jul 31, 2015, at 15:17 , Rick Mann 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 that support drag-a

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 wrote: > > sounds like the delegate isn't set so it don't know where to look for those

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 wrote: > > But I still get this at run time: > > *** Illegal NSOutlineView data source (). > Must implement outlineView:num

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 2.

Re: Init String with bytes

2015-07-31 Thread Charles Srstka
> On Jul 31, 2015, at 2:51 PM, Jens Alfke 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 = NSString(data: dataValue, en

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

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 makin

Re: Init String with bytes

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

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 initial

Re: FSFileManager strange behaviour on OS X

2015-07-31 Thread Jens Alfke
> On Jul 31, 2015, at 11:46 AM, Tim Fletcher > 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 application sandboxed? Bu

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 = NSFileManager.defaultManager(

Re: NSManagedObject, NSString property retain vs copy

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