• 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
Binding question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding question


  • Subject: Binding question
  • From: Arun <email@hidden>
  • Date: Tue, 28 Apr 2009 15:39:41 +0530

Hi,
I have an application in which i am trying to display information about the
student in a table. The table has 2 columns. One representing the
enble/disble in a check box
and the other column representing the student column. I have enabled
double-click action on the table column.
So once i double click on a specific row, i display a sheet and the sheet
will display the Name of the student and a table below with 2 columns. First
column will represent the subject name and the second column will represent
the marke he has scrored in number. i want to use Binding for this
application.

So I have a model class some thing like this

@interface studentmodel
{
     BOOL    enabled;
     NSString Name;
     NSMutableArray *subjectDetails;
}
@end

The subjectDetails will hold the objects of class
@interface deatils
{
     NSString    *subjectName;
     int                marks;
}
@end

For the first table i have used the an array in my controller and this array
has been set as content array in the ArrayController object.
Now when i double click in need to bind the table in the sheet to the the
 subjectDetails array. I am not able to figure out how to set the binding
for the second table.
Any ideas?

Thanks
Arun KA
_______________________________________________

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: Binding question
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Finder Sidebar "Shared" Items
  • Next by Date: Observing properties which are not objects
  • Previous by thread: Finder Sidebar "Shared" Items
  • Next by thread: Re: Binding question
  • Index(es):
    • Date
    • Thread