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:
But with integers i have a problem:
This would be an invalid cast:
And this does't work eather:
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:
Code:
id newObj = [super newObject];
[newObj setValue:@"Test" forKey:@"title"];
This would be an invalid cast:
Code:
[newObj setValue:1 forKey:@"track"];
Code:
[newObj setInteger:1 forKey:@"track"];
How can i assign my integer to that key called "track"???
Thx for helping,
greetings, BliBlaBlo