Re: Can I make custom pasteboard type for an object reference?

2009-10-15 Thread Timothy Stafford Larkin
I messed around with this problem for some time, before I gave up trying to be clever and cast the pointer as an unsigned long. NSNumber *p = [NSNumber numberWithUnsignedLong:(unsigned long)object]; The number can be added to a pasteboard. Or if dragging more than one object,

Re: Having problems understanding NSPredicateEditor

2009-12-27 Thread Timothy Stafford Larkin
The only way I have done this is to build the thing in IB. Forget the NSSearchField. First add a Predicate Editor to a window. This gives you a top-level compound predicate ("Any of the following are true") and a single predicate template. The predicate template has three parts, a left expressi

Re: Bison/Yacc with Objective-C ?

2010-03-10 Thread Timothy Stafford Larkin
You don't need to change the file extension, just a build setting. Change "Compile Sources As" from "According to file type" to "Objective C". Also, I've found that "@" as in @"String Constant" produces Bison confusion. I use a #define so that I can write AT"String Constant". Tim Larkin Abstrac