• 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
Pre-defined methods - documentation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pre-defined methods - documentation?


  • Subject: Pre-defined methods - documentation?
  • From: Tim Hewett <email@hidden>
  • Date: Sat, 8 May 2004 20:53:09 +0100

Hi,

I've found by chance that the variables that Interface Builder connects
to on-screen controls have default "hidden" accessor methods created
for them automatically. For example my app has a text box known to
the code as "statusString". Creating a method called "setStatusString:"
so that a class outside the controller could set the contents of this text
box stopped all text from appearing in this box, even though the body
of this method simply called [statusString setStringValue:value]; and
returned. Renaming this method to "setStatusStringValue" solved the
problem, so clearly it was overriding something. Is there any documentation
covering this hidden talent, so far I've found none and it has wasted me
both days and hair...!

Regards,

Tim Hewett, Coolatoola.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Pre-defined methods - documentation?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Adding rows and cols to an NSMatrix programmatically
  • Next by Date: Image expands with compression
  • Previous by thread: Re: NSView's autoresizing
  • Next by thread: Re: Pre-defined methods - documentation?
  • Index(es):
    • Date
    • Thread