• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
core data and IB outlet binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

core data and IB outlet binding


  • Subject: core data and IB outlet binding
  • From: Torsten Curdt <email@hidden>
  • Date: Wed, 9 Apr 2008 12:31:29 +0200

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?

cheers
--
Torsten

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: core data and IB outlet binding
      • From: "Mike R. Manzano" <email@hidden>
    • Re: core data and IB outlet binding
      • From: Keary Suska <email@hidden>
    • Re: core data and IB outlet binding
      • From: Torsten Curdt <email@hidden>
  • Prev by Date: Re: Beginner TableView Questions
  • Next by Date: Re: How to get a notification which tells a folder name got changed
  • Previous by thread: Re: How to get a notification which tells a folder name got changed
  • Next by thread: Re: core data and IB outlet binding
  • Index(es):
    • Date
    • Thread