• 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
Re: Setting focus to text field in drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting focus to text field in drawer


  • Subject: Re: Setting focus to text field in drawer
  • From: publiclook <email@hidden>
  • Date: Mon, 11 Aug 2003 12:30:39 -0400

However, if Apple renames any private instance variables and/or adds any (perhaps by replacing 'reserved' place holders), Apple's code could inadvertently break yours.


Imagine the following:

SuperClass
{
int _fu;
id _bar;
void *_reserved;
}


MySubclass : SuperClass
{
id _namesDict;
int _count;
}


Now in a future release Apple changes SuperClass which they are free to do:

SuperClass
{
int _count; // was called _fu
id _bar;
NSDictionary *_namesDict;
}

When you recompile MySubclass for the new release, you will get lots of compile errors that you didn't get before. It is better to just avoid using the name space that Apple has reserved.



On Monday, August 11, 2003, at 06:07 AM, Bill Cheeseman wrote:

on 03-08-10 8:53 PM, publiclook at email@hidden wrote:

Also, Apple reserves all variable names that start with just one
underscore and don't have a unique prefix.

Actually, Apple only reserves method names with a leading underscore. We are
free to use a leading underscore with variable names, as the compiler will
catch any conflict with variables of the same name in Apple's headers. The
latest version of the documentation (I forget which documentation; probably
System Overview) makes this explicit.
_______________________________________________
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: Setting focus to text field in drawer
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Setting focus to text field in drawer (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: How do you tab into an NSTableView?
  • Next by Date: Re: Text Summarization
  • Previous by thread: Re: Setting focus to text field in drawer
  • Next by thread: Re: Setting focus to text field in drawer
  • Index(es):
    • Date
    • Thread