Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Blakeasd

macrumors 6502a
Original poster
Dec 29, 2009
643
0
Hello,
How do I set the source of an IKImageBrowserView?
1. Can it be an NSMutableArray full of images?
2. If I use an NSMutableArray can I use IKImageBrowserView's setDataSource:
method?
Thanks
 

chown33

Moderator
Staff member
Aug 9, 2009
10,747
8,420
A sea of green
Hello,
How do I set the source of an IKImageBrowserView?
With the setDataSource: method.

1. Can it be an NSMutableArray full of images?
According to the documentation for setDataSource:, the object set as the data-source must implement the required parts of the IKImageBrowserDataSource protocol.

Does NSMutableArray implement the required parts of that protocol? No, it doesn't.

2. If I use an NSMutableArray can I use IKImageBrowserView's setDataSource:
method?
NSMutableArray doesn't implement the required parts of the IKImageBrowserDataSource protocol.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.