objective c - Changing collectionview button's image in Cocoa -


tools: xcode, objective-c, mac, cocoa

purpose: creating collection view many buttons. each button opens file in folder , each of them has background picture of file (for example: jpeg file) looks see in folder.

question: how make each button have different image? also, difficult beginner?

p.s. : if did without collectionview option, drag button on xib , change background images, need window collapsable , scrollable, hence using collection view.

i appreciate comments/help/answers. thanks!

this should not difficult. collectionview holds collection of collectionviewitems. inside item can create views need. 1 of them nsimageview set @ runtime image like. suggest play around collectionview , f samples apple provides on it.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -