Reserved outlet names in Cocoa?
Reserved outlet names in Cocoa?
- Subject: Reserved outlet names in Cocoa?
- From: Jonathan del Strother <email@hidden>
- Date: Fri, 12 Nov 2004 17:33:51 +0000
<x-tad-bigger>I just created a class in Interface Builder, and gave it a bunch of attributes like font, size, color, text...
I generate the code files, connect the attributes to various popup buttons and color wells and start programming my application. But things aren't working. For some reason font, size, and color are all nil.
Much experimentation later, and I find that if I rename the attributes (fontList, sizeList, colorWell), they seem to work ok.
I can't understand this. The controller class just inherits from NSObject, which doesn't contain any similarly named attributes that might perhaps cause problems. So why doesn't an attribute named 'font' work?
Cheers,
Jon</x-tad-bigger> _______________________________________________
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