Re: Runtime error with ABPeoplePickerView
Re: Runtime error with ABPeoplePickerView
- Subject: Re: Runtime error with ABPeoplePickerView
- From: Adam Holt <email@hidden>
- Date: Sun, 10 Apr 2005 14:27:42 +0100
Thanks for the pointer Daniel - this totally hit the spot!
I've only been programming in Cocoa for 5 minutes and I've already picked up
some bad habits, so thanks for putting me straight.
BR, adam.
On 9/4/05 6:40 pm, "daniel" <email@hidden> wrote:
> 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