Setting IKImageBrowserView's DataSource

Discussion in 'Mac Programming' started by Blakeasd, May 15, 2011.

  1. Blakeasd macrumors 6502a

    Joined:
    Dec 29, 2009
    #1
    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
     
  2. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
  3. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #3
    With the setDataSource: method.

    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.

    NSMutableArray doesn't implement the required parts of the IKImageBrowserDataSource protocol.
     

Share This Page