• 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
A word of caution...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A word of caution...


  • Subject: A word of caution...
  • From: Brad Bumgarner <email@hidden>
  • Date: Fri, 12 May 2006 12:41:23 -0600

To all Objective-C newbe's out there (like myself), I bring you a word of caution: MAKE SURE YOUR CAPITALIZATION IS CORRECT!

I have just spent the better part of a week (working on this project off and on) stumped as to why a method I wrote was not being called from Applescript. The reason: a simple typo! Look at the difference between the incorrect code and the correct code that follows:

The incorrect code first:

set phoneNumbersForName to (call method "getPhoneNumbersForID:" of class "AB_Handler" with parameter idForName)



and now the correct code:

set phoneNumbersForName to (call method "getPhoneNumbersForID:" of class "AB_handler" with parameter idForName)



Do you see the difference? "AB_Handler" vs. "AB_handler" took me forever to find! lol


I feel better now. Brad Bumgarner, CTA _______________________________________________ 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: A word of caution...
      • From: "Clark Cox" <email@hidden>
  • Prev by Date: Re: [NSProcessInfo processInfo] environment] only can see my session's env variables via the debugger.
  • Next by Date: Re: Implementing Quit
  • Previous by thread: Re: Why does setFrame: change the origin of the bounds?
  • Next by thread: Re: A word of caution...
  • Index(es):
    • Date
    • Thread