• 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: Use of "min" and "max" functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of "min" and "max" functions


  • Subject: Re: Use of "min" and "max" functions
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 18 May 2007 17:11:14 -0700

On 5/18/07, John Draper <email@hidden> wrote:
Hi,

I'm trying to use the "min" and "max" functions.  These just return the
smallest or
largest value of the two passed aguments.

I'm getting a link error when I try and use "min(val1, val2)" and get a
ZeroLink
error on _min and _max.

What is the best way to deal with this?

Since you are asking on the Cocoa list... use MAX(), MIN(), etc. since those are defined by Foundation.

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Use of "min" and "max" functions (From: John Draper <email@hidden>)

  • Prev by Date: Re: variadic function
  • Next by Date: Re: Accessing an NSArrayController in another NIB file
  • Previous by thread: Re: Use of "min" and "max" functions
  • Next by thread: Accessing an NSArrayController in another NIB file
  • Index(es):
    • Date
    • Thread