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 redecl
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,
> 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:].
>
> Regards,
> Ken
This is hugely better than my old c
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 wrote:
>>
>> What I really
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 (Cocoa-dev@lists.apple.com)
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 mailing
> 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 warnings in macOS 12
>> ?
>
> I doubt you'll fin
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.
>
> How to convert a pa
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 NSImage and
-initWithCont
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
10 matches
Mail list logo