FROM : daniel
DATE : Sat Apr 09 19:40:56 2005
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>-
> sweater.com
>
> This email sent to <email_removed>
DATE : Sat Apr 09 19:40:56 2005
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>-
> sweater.com
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Adam Holt | Apr 9, 10:00 | |
| daniel | Apr 9, 19:40 | |
| Mark T | Apr 9, 21:08 | |
| Adam Holt | Apr 10, 15:27 |






Cocoa mail archive

