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

Till Roenneberg

macrumors newbie
Original poster
Aug 22, 2008
8
0
I am new to Cocoa programming and certainly far from being a professional programmer. I wrote a lot of programmes in the old OS 7-9 where the issue below was no problem.

In Cocoa, I don't know how to tell my programme (not document based) to open its own documents if they were double-clicked or dropped on the programme icon.

I am sure that the answer is quite simple but I have looked for weeks on the web and couldn't find anything that helped me with this problem. Any hint is greatly appreciated.

Thanks Till
 
Have a read about UTIs on the Apple site.

Thanks. I have read this document (I am sure I still haven't done everything correctly).

The problem is not, however, that my programme doesn't start when I double-click one of its own files - it does that perfectly.

The problem is that I don't know what code to add so that the programme actually handles the file's content.


Thanks TIll
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.