'method' is partial: introduced in macOS 10.8

2016-11-01 Thread Rick Mann
I'm trying to build some I wrote last year (actually this is code in a library I used last year), and under Xcode 8 I'm getting warnings like these: 'objectForKeyedSubscript:' is partial: introduced in macOS 10.8 'objectForKeyedSubscript:' has been explicitly marked partial here Explicitly

Re: Prioritizing drawing of the important stuff

2016-11-01 Thread Jonathan Taylor
Hi everyone, Thankyou all for your replies. Plenty of food for thought there - much appreciated. Looks like timers and flow control is the way forward then, if I want to tackle this. I just thought I'd see if there was anything built in to the standard UI frameworks that might be able to help,

Re: How to get an undeprecated FSRef

2016-11-01 Thread Gerriet M. Denkmann
> On 1 Nov 2016, at 15:25, Ken Thomases wrote: > > On Nov 1, 2016, at 3:20 AM, Gerriet M. Denkmann wrote: >> >> What I really want to do: Create custom icons for folders programmatically. > > Use -[NSWorkspace setIcon:forFile:options:]. > >

Re: How to get an undeprecated FSRef

2016-11-01 Thread dangerwillrobinsondanger
All together, looks like NSWorkspace should enable doing this as long as you don't hit some permissions restrictions on some folders. Less code no doubt too. Cool. > On 1 Nov 2016, at 17:25, Ken Thomases wrote: > >> On Nov 1, 2016, at 3:20 AM, Gerriet M. Denkmann

Re: How to get an undeprecated FSRef

2016-11-01 Thread Ken Thomases
On Nov 1, 2016, at 3:20 AM, Gerriet M. Denkmann wrote: > > What I really want to do: Create custom icons for folders programmatically. Use -[NSWorkspace setIcon:forFile:options:]. Regards, Ken ___ Cocoa-dev mailing list

Re: How to get an undeprecated FSRef

2016-11-01 Thread Tamas Nagy
Hi there, > > What I really want to do: Create custom icons for folders programmatically. > you can use NSWorkspace for that. Check out: https://developer.apple.com/reference/appkit/nsworkspace/1529882-seticon?language=objc ___ Cocoa-dev

Re: How to get an undeprecated FSRef

2016-11-01 Thread Gerriet M. Denkmann
> On 1 Nov 2016, at 14:44, Ken Thomases wrote: > > On Nov 1, 2016, at 2:08 AM, Gerriet M. Denkmann wrote: >> >> I am using ReadIconFromFSRef (not deprecated), which needs an FSRef. >> >> How to convert a path into an FSRef without deprecation

Re: How to get an undeprecated FSRef

2016-11-01 Thread dangerwillrobinsondanger
NSWorkspace has iconForFile: NSURL has getResourceValue:forKey:error: Do those not accomplish what you need to do instead? Sent from my iPhone > On 1 Nov 2016, at 16:08, Gerriet M. Denkmann wrote: > > I am using ReadIconFromFSRef (not deprecated), which needs an FSRef. >

Re: How to get an undeprecated FSRef

2016-11-01 Thread Ken Thomases
On Nov 1, 2016, at 2:08 AM, Gerriet M. Denkmann wrote: > > I am using ReadIconFromFSRef (not deprecated), which needs an FSRef. > > How to convert a path into an FSRef without deprecation warnings in macOS 12 ? I doubt you'll find anything. You should switch to using

How to get an undeprecated FSRef

2016-11-01 Thread Gerriet M. Denkmann
I am using ReadIconFromFSRef (not deprecated), which needs an FSRef. How to convert a path into an FSRef without deprecation warnings in macOS 12 ? Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or