Tom Medhurst
2/4/2009 12:06:00 PM
[Note: parts of this message were removed to make it a legal post.]
Hi There,
I am trying to create an NSImage which contains the system kComputer
icon. Unfortunately RubyCocoa can't resolve kComputer or
use :kComputer or it's header value 'root'.. I have tried the
following:
1. NSWorkspace.sharedWorkspace.iconForFileType(NSFileTypeForHFSTypeCode
(:root))
2. NSWorkspace.sharedWorkspace.iconForFileType(NSFileTypeForHFSTypeCode
(:kComputer))
3. NSWorkspace.sharedWorkspace.iconForFileType(NSFileTypeForHFSTypeCode
(kComputer))
4. NSWorkspace.sharedWorkspace.iconForFileType(NSFileTypeForHFSTypeCode
(NSNumber.numberWithUnsignedLong('root')))
5. NSWorkspace.sharedWorkspace.iconForFileType(:root)
6. NSWorkspace.sharedWorkspace.iconForFileType(:kComputer)
7. NSWorkspace.sharedWorkspace.iconForFileType(kComputer)
etc...
Has anybody got this to work in RubyCocoa?
Many Thanks
*Tom Medhurst*