• 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
Reserved outlet names in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Reserved outlet names in Cocoa?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Get the window at a certain point
  • Next by Date: Can NSStatusItem contain NSTextField ?
  • Previous by thread: Re: IB changes not reflected
  • Next by thread: Re: Reserved outlet names in Cocoa?
  • Index(es):
    • Date
    • Thread