On 29 Jan 2009, at 4:24 PM, Adam R. Maxwell wrote: > On Jan 29, 2009, at 1:23 PM, Christiaan Hofman wrote: > >> I've changed it to use Adam's ideas, so using Mail's procedures. >> The main reason is that it requires almost no UI, and the UI it >> adds is completely standard. > > Cool. I noticed that the colors look better with transparency, so > Jonas might want to give that a try...you can make it looks > reasonably close to Finder labels. > >> One small technical (incompatible) difference with Adam's approach >> is that I store the color as a string representing an unsigned 32 >> bit int rather than a signed one (I solved the sign problem by >> reading the string using longLongValue, which is always big enough >> to represent an uint32_t). > > Interesting. I took the lazy way out on that, but there are many > different ways to do it; as long as you interpret the string the > same way on input/output, you get the correct 32 bit pattern back. > I did try moving from ppc <-> x86, and endianness didn't cause a > problem.
I added a radar # 6539508 asking for unsigned variants of the NSString accessors. Never understood why those are missing. Remember that if you want to communicate between your 2 bibdesk versions they're incompatible. Christiaan ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users