No one a suggestion on how to track this down?

On Apr 9, 2008, at 12:31, Torsten Curdt wrote:
I have a custom NSCollectionViewItem

   @interface FilterViewItem : NSCollectionViewItem {

       IBOutlet NSTextField *filterExpression;

   }

   - (IBAction) applyFilter:(id)sender;

   @end

It's getting filled via core data just fine. Then I've also bound the filterExpression to the NSTextField in the prototype view. The same way the button is bound.

   @implementation FilterViewItem

   - (IBAction) applyFilter:(id)sender
   {
       NSString *expression = [filterExpression stringValue];

       NSLog(@"expression %@", expression);

When the button is pressed it turns out that filterExpression (and therefor also the stringValue of it) is nil.

I assume somehow I could probably also get the value from the NSArrayController ...but

a) I am not sure how to get hold of the instance from within the FilterViewItem

b) I would need to get access to the NSTextField at some stage anyway

What am I missing here?

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to