T
Tom Medhurst
[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.iconForFileTyperoot)
6. NSWorkspace.sharedWorkspace.iconForFileTypekComputer)
7. NSWorkspace.sharedWorkspace.iconForFileType(kComputer)
etc...
Has anybody got this to work in RubyCocoa?
Many Thanks
*Tom Medhurst*
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.iconForFileTyperoot)
6. NSWorkspace.sharedWorkspace.iconForFileTypekComputer)
7. NSWorkspace.sharedWorkspace.iconForFileType(kComputer)
etc...
Has anybody got this to work in RubyCocoa?
Many Thanks
*Tom Medhurst*