• 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: Parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameters


  • Subject: Re: Parameters
  • From: Glen Simmons <email@hidden>
  • Date: Fri, 7 Nov 2003 17:28:26 -0600

On Nov 7, 2003, at 4:25 PM, John MacMullin wrote:

1. After some experimentation, the following works:

#define clearAndSort -1
#define noRedDisplay NO;
[self clearScreenFields:clearAndSort checkRed:[self setNoRedDisplay]];

- (bool)setNoRedDisplay
{
return noRedDisplay;
}

FYI: by convention, a setXXX method does not return the value, it sets an instance variable. This is expected by the framework in a few areas like key value coding, so one might say it's almost a requirement.

i.e.
- (BOOL)noRedDisplay {
return noRedDisplay;
}

// Obviously this would not work in the example above. noRedDisplay would need to be an instance variable
- (void)setNoRedDisplay:(BOOL)inFlag {
noRedDisplay = inFlag;
}

HTH,
Glen
_______________________________________________
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.

References: 
 >Parameters (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: Parameters
  • Next by Date: Re: Controller Layer and Automatic Key-Value Observing
  • Previous by thread: Re: Parameters
  • Next by thread: Parameters
  • Index(es):
    • Date
    • Thread