bliblablo
Nov 15, 2008, 10:34 AM
Hey
I have an entity which contains an attribute called "track" and it is a integer.
The attribute is bint to a tableview.
Now i have an ArrayController and in there i have a method named "openFile"
Everything works for strings:
id newObj = [super newObject];
[newObj setValue:@"Test" forKey:@"title"];
But with integers i have a problem:
This would be an invalid cast:
[newObj setValue:1 forKey:@"track"];
And this does't work eather:
[newObj setInteger:1 forKey:@"track"];
How can i assign my integer to that key called "track"???
Thx for helping,
greetings, BliBlaBlo
I have an entity which contains an attribute called "track" and it is a integer.
The attribute is bint to a tableview.
Now i have an ArrayController and in there i have a method named "openFile"
Everything works for strings:
id newObj = [super newObject];
[newObj setValue:@"Test" forKey:@"title"];
But with integers i have a problem:
This would be an invalid cast:
[newObj setValue:1 forKey:@"track"];
And this does't work eather:
[newObj setInteger:1 forKey:@"track"];
How can i assign my integer to that key called "track"???
Thx for helping,
greetings, BliBlaBlo
