Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Beginner...Please Help!!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xstep" data-source="post: 219248" data-attributes="member: 11647"><p>I've noticed you've asked several newbie questions. From what I can tell you need to buy a book. A highly praised one is "Cocoa Programming for Mac OS X". Get the second edition which is the current printing. Page 161 answers your question if your building a standard Cocoa app. The answer is a bit lengthy to post here, and dated for how one gets to the appropriate panel. I'm half way through this book so am (re)learning too.</p><p></p><p>If your building a command line app, I'm not sure you can associate a custom icon for it. But you can double click them and they will open in a Teminal window.</p><p></p><p>The shortest answer I can give for a Cocoa type app is; Click on the target program name in Xcode, under the Project menu select Edit Active Target <your program name>". Under the Info.plist Entries select Document Types. Name seems to be your program's name. And extension is what your looking for. Now you just need the code to write/read your file. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="xstep, post: 219248, member: 11647"] I've noticed you've asked several newbie questions. From what I can tell you need to buy a book. A highly praised one is "Cocoa Programming for Mac OS X". Get the second edition which is the current printing. Page 161 answers your question if your building a standard Cocoa app. The answer is a bit lengthy to post here, and dated for how one gets to the appropriate panel. I'm half way through this book so am (re)learning too. If your building a command line app, I'm not sure you can associate a custom icon for it. But you can double click them and they will open in a Teminal window. The shortest answer I can give for a Cocoa type app is; Click on the target program name in Xcode, under the Project menu select Edit Active Target <your program name>". Under the Info.plist Entries select Document Types. Name seems to be your program's name. And extension is what your looking for. Now you just need the code to write/read your file. ;) [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Beginner...Please Help!!
Top