From: Tom Medhurst Date: 2009-02-04T21:06:13+09:00 Subject: RubyCocoa and Mac System Icons --00151750dbe2d98c1b0462169e2b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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* --00151750dbe2d98c1b0462169e2b--