• 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
String not showing up in Table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

String not showing up in Table


  • Subject: String not showing up in Table
  • From: Philipp Ringli <email@hidden>
  • Date: Thu, 3 Feb 2005 10:52:00 +0100

I am trying hard to get my table to work. ;-)
The table has two colums, one with a textfield, and one with a check box.


Is this the right way to set the textfield in the table to "Please enter Classpath..."?
(The user clicks the Add button and a new row is inserted, that he then should edit.)


How do I go about adding the value for the check box column to the dictionary (record)?

Right now, when I add a row using the Add button, a row is added, but there's no "Please enter Classpath..." in the textfield.
And I can't check the check boxes.


Thanks,
Phil

Controller.m:
----------------------------------------------------------------
-(NSDictionary *)createRecord
{
	NSMutableDictionary *record = [NSMutableDictionary dictionary];
	[record setObject:@"Please enter Classpath..." forKey:@"classpath"];
	return record;
}

- (IBAction) addRecord:(id) sender
{
	[classPathRecords addObject:[self createRecord]];
	[classPathTable reloadData];
	//NSLog (@"\nclassPathRecords:%@", classPathRecords);
}

-(void)awakeFromNib
{
	classPathRecords = [[NSMutableArray alloc] init];
}

_______________________________________________
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


  • Follow-Ups:
    • Re: String not showing up in Table
      • From: Philipp Ringli <email@hidden>
  • Prev by Date: Re: NSDocument setFileName - File Must Exist?
  • Next by Date: Re: Method not seeing array as array
  • Previous by thread: I almost have colorizeByMappingGray working...
  • Next by thread: Re: String not showing up in Table
  • Index(es):
    • Date
    • Thread