• 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
Weird xcode exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird xcode exception


  • Subject: Weird xcode exception
  • From: Rosyna <email@hidden>
  • Date: Sat, 21 Feb 2004 12:16:05 -0700

I am trying to debug a Carbon/CoreFoundation plugin in Safari and when I step through code in xcode, I get an exception:

*** -[NSCFNumber length]: selector not recognized

Of course, I have no idea why it is calling length on my CFNumberRef. The code in question is:

MenuID menuID=GetMenuID(inMenu);
if (menuID)
{
CFNumberRef number=CFNumberCreate(NULL, kCFNumberSInt16Type, &menuID);
if (number) // excepts here


Is my code too ambiguous for xcode? Xcode seems to think my number (or something) is a string. Does anyone know a fix?



(gdb) bt
#0 0x90a5cdc8 in -[NSException raise] ()
#1 0x90a5cdb4 in +[NSException raise:format:] ()
#2 0x909fd6b0 in -[NSObject(NSForwardInvocation) forward::] ()
#3 0x90836850 in _objc_msgForward ()
#4 0x0241868c in Xcode_CFStringSummary ()
#5 <function called from gdb>
#6 LiPrefs_SetCustomizationsForMenuItem (inMenu=0x8256180, inItem=2, inDict=0x827d8c0, isOriginal=1 '\001') at Liturgy/LiPrefs.c:683
--



Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: SMB sharing bug - any updates
  • Next by Date: Re: PackageMaker, Installer, and system folder permissions
  • Previous by thread: Re: SMB sharing bug - any updates
  • Next by thread: Java, XCode & Jar references.
  • Index(es):
    • Date
    • Thread