• 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: Runtime error with ABPeoplePickerView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Runtime error with ABPeoplePickerView


  • Subject: Re: Runtime error with ABPeoplePickerView
  • From: daniel <email@hidden>
  • Date: Sat, 9 Apr 2005 10:40:56 -0700

Hi Adam - remember that objects don't contain code. They are simply the data that the code will operate on, and an identifier that tells the Obj-C system which code to use.

When you instantiate the object in InterfaceBuilder, it has the ABPeoplePickerView object's code available to it, so you can test the interface with no problem. When you instantiate the object in your app, it's failing to find any class with that name.

I suspect that you need to add the "AddressBook.framework" to your project. As Cocoa developers, it's easy to fall out of the habit of making sure we have the "right libraries" in our projects, because so much is included for free as a descendent of Cocoa.framework. AddressBook, I believe, needs to be added separately.

Daniel

On Apr 9, 2005, at 1:00 AM, Adam Holt wrote:

Hi,

I'm trying to do something very simple (theoretically) here.

If I drop an ABPeoplePickerView control onto a window in IB, I can test the
interface successfully inside IB and browse my address book with no
problems. The project also compiles fine when back inside Xcode, but I get
a runtime error and the app bombs:


2005-04-08 17:10:14.061 test-app[1885] An uncaught exception was raised
2005-04-08 17:10:14.062 test-app[1885] *** class error for
'ABPeoplePickerView': class not loaded
2005-04-08 17:10:14.066 test-app[1885] *** Uncaught exception:
<NSArchiverArchiveInconsistency> *** class error for 'ABPeoplePickerView':
class not loaded


Any tutorials I've seen referring to this class would suggest that it should
run straight out of the box but clearly not in my case. Any suggestions as
to where I might be going wrong would be greatly appreciated!


Many thanks,

Adam.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden

_______________________________________________ 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: Runtime error with ABPeoplePickerView
      • From: Adam Holt <email@hidden>
References: 
 >Runtime error with ABPeoplePickerView (From: Adam Holt <email@hidden>)

  • Prev by Date: Fwd: deactivating an NSScrollView
  • Next by Date: Parsing XML - looping through records.
  • Previous by thread: Runtime error with ABPeoplePickerView
  • Next by thread: Re: Runtime error with ABPeoplePickerView
  • Index(es):
    • Date
    • Thread