• 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
Re: NSMutableArray/NSTableView/NSArrayController problems...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray/NSTableView/NSArrayController problems...


  • Subject: Re: NSMutableArray/NSTableView/NSArrayController problems...
  • From: Kimberly Staton <email@hidden>
  • Date: Mon, 3 Oct 2005 13:33:12 -0700 (PDT)

Dear list,

I know that this question is very common, but could
someone please help me?  All of the examples I've
found only cover adding default items to a tableview
and then letting the user modify the text...  I need
to know how to make insert: and remove: have different
functionality...

A coworker keeps suggesting the use of a delegate, but
I can't see how that would apply...

Kimberly

--- Kimberly Staton <email@hidden> wrote:

> Dear list,
>
> I am most definitely a Cocoa newbie, and I've run
> into
> a problem...
>
> I'm trying to add and remove entries to a
> NSTableView.
>  When an item is inserted (when the user  pressed
> the
> "Add File Input" button), an open panel needs to be
> created to point to the file that the program needs
> to
> open, and an alert dialog (or some kind of panel)
> needs to be generated to ask the user to enter a
> name
> for the NSTableView entry...
>
> Only, I'm having trouble figuring out how to relate
> all of these functions...  I've created a model
> class
> for the entries, and I've gotten it insert and
> remove
> items when I press the buttons (I created a
> NSArrayController in IB and bound it/connected it to
> the various components), but the items being
> inserted/removed are only NSStrings I hardcoded into
> the init method...
>
> I need to figure out a way to overload the
> insertObject and removeObject methods, I suppose,
> but
> I'm not sure how.  I probably need to install
> observers, but again, I don't really know how...
>
> Could some please help me?
>
> Thanks,
> Kimberly
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>  _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Cocoa-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSMutableArray/NSTableView/NSArrayController problems... (From: Kimberly Staton <email@hidden>)

  • Prev by Date: Re: Single instance of properties window
  • Next by Date: facing pages in a pdfview?
  • Previous by thread: NSMutableArray/NSTableView/NSArrayController problems...
  • Next by thread: PerlObjCBridge: calls to NSMakeSize_ (and NSMakeRect_) not working?
  • Index(es):
    • Date
    • Thread