Appkit examples on OSX 10.6 - macos

I'm trying to re-invent Preview.app. I've been told that some examples in /Developers/Examples/AppKit will help me. However, on my 10.6 system, I don't have such a folder.
Did the examples get moved? Is my installation somehow incomplete? will the examples I copy from a 10.5 system work?
thanks

Quoting ReadMe.rtf on /Developer/Examples:
The Xcode projects that were formerly installed locally in the /Developer/Examples/ folder are now in the ADC Reference Library. The ADC Reference Library now provides access to all documentation and sample code.
Using Xcode, find sample code in the Documentation window. Search for samples by title, search for symbols that you're interested in, or use the reference library navigation to find samples by topic or framework. Documents in the reference library are organized by resource type, which allows you to choose the type of document most relevant to your needs, including sample code. You can view all sample code, navigate to a particular topic and see relevant sample code for that topic, or navigate to a framework that you're interested in and see sample code that specifically focuses on that framework.
Find sample code using your web browser by going to the Mac Dev Center, linked from http://developer.apple.com.
From there, go to the reference library.
Hope that helped!

Related

Mean.js, where do I start?

I have to make a web application with Meanstack for a school project. I have downloaded and installed the newest version of the Mean.js boilerplate (http://meanjs.org/) and got the sample site working. But I have no idea how to continue. There are so many files in the project directory. Can somebody please tell me the files I can/need to change to start building my own app?
I'm very new to programming, so sorry if this is a stupid question. I'd really appreciate an answer.
This is what the project folder looks like.
The meanjs.org documentation (here) has plenty of great information about what each file does, and what you might need to research to get started. Besides that there are a lot of great tutorials out there, one I liked in particular was this youtube series.
Please note that in these examples I am using the mean stack from meanjs.org, not mean.io, and I am using version 0.3. If you are using a different MEAN stack, or version, I would still recommend first looking through the official documentation, and then various tutorials online.

Is there any reference or information for creating an input method for Mac OS X?

Any information is welcome.
I know nothing about the APIs for input methods in OS X.
Look at the Input Method Kit Framework Reference and the sample code.
You're looking for the Input Method Kit framework.
Apple provides the NumberInput project as an InputMethodKit code sample.
This sample includes five stages. You begin with a simple do nothing version and move to a full version.
I found their provided sample code rather hard to follow, as each "step" in the project is distributed in its own folder. I've uploaded each step as a separate commit in a git project here:
https://github.com/pkamb/NumberInput_IMKit_Sample

What do I need to know to create Xcode project templates?

I know some of the tutorials for creating Xcode project templates, for example this one here: http://robnapier.net/blog/project-templates-364
This is the best one I could find. All others basically repeat the same info, or are no longer up to date, or worse tell me that even they don't know what they're doing. Possibly useful tools that are linked to here and in other places are no longer available.
I keep running into roadblocks, and would like to gather as much information as possible on the process of creating Xcode project templates. Info that is most importantly up to date (at least it must be relevant for Xcode 3 or higher).
For example, what I'd like to see is:
a description of the
TemplateChooser.plist and similar
plist files and what these options do
(in my case, once I add a
TemplateChooser.plist, my project
disappears from the Xcode project
template list)
how to create a project template that references another .xcodeproj (when I do that, the other .xcodeproj appears in the project template list even though it doesn't use the special naming convention)
processes that can be applied, for example is it possible to run a script during the creating of a project from a template? This would be useful to unzip certain files into the newly created project.
If you have the answer or suggestions to any of the issues above, I'd appreciate that. Otherwise any link to good Xcode project template resources would be highly recommended. Especially if there is an official documentation from Apple - I haven't found one yet which seems to imply that project templates are undocumented.
Have you seen these:
http://www.sodeso.nl/?p=895
http://www.codeproject.com/KB/iPhone/CreatingXcodeProject.aspx
If you say you have searched, I'm pretty sure you've already seen the links but these are the best resources I could find with my 'googlabilities'
You might try contact this guy - http://linkedin.com/in/mottishneor he has some related messages around the web
The links suggested by FX are also not bad at all!
There is indeed little XCode template info out there. What I have found of interest are the following links (I documented myself on the topic, but haven't yet gone any further):
a Google Code search reveals a few examples, but not much
in particular, I found interesting to look at the code provided by Three20; they have some basic examples, like here
referencing another project worked for me, so maybe you could open a specific question about that giving more details?
there is information scattered on the Apple mailing-lists
there is no official documentation from Apple, as is evidenced by the lack of results to this query
I'm sorry if this is not a Enlighting, concise answer. As you said, it's not well documented, and sources are all over the place. I just hope I could highlight some places to find information that your own searches might not have reached :)
I don't have a Mac anymore, so this is as much as I can give you without testing this myself. As far as I can tell, Xcode templates are undocumented by Apple.
This guy has some guides for messing with Xcode templates but the info is pretty sparse. My suggestion for working with templateChooser.plist is to try to only edit that file in the interface builder.
This guide is a good example of how to add a reference to another .xcodeproj. For the reason you were having trouble adding a reference to your project we probably need more information.
If you scroll way down in this doc you can that each template already includes a script called myscript.sh. This script will show up in the scripts menu for projects built with that template. That isn't quite as convenient as running scripts automatically, but it's better than nothing.
In conclusion, Xcode template documentation is a nightmare. It looks like there are a lot of powerful features there, but they are obscured because of lack of user friendlyness and because documentation lags far behind Apples updates of Xcode. It just doesn't seem to be a priority for them. I hope this helps.
And yet another video link http://howtomakeiphoneapps.com/2010/10/how-to-make-custom-xcode-templates-with-video/

Companion sample Xcode project for "Apple Help Programming Guide"?

Does anyone know of a sample Xcode project that demonstrates how to provide user help and which closely follows the guidelines of the "Apple Help Programming Guide"?
The guide's revision history shows that one of the more recent new guidelines is to organize help books in a bundle. I'm experiencing some trouble following this guideline. Unfortunately AFAIK the guide does not make any mention of a downloadable sample Xcode project; and I cannot find any application installed on my 10.5 system with a help book organized into a bundle.
Does anyone know of a sample project or at least an open-source project which follows this "help book in a bundle" guideline?
This link provides a step-by-step guide:
http://www.codefreeze.net/documentation/step-implement-an-htmlbased-apple-help-bundle-for-snow-leopard.html
It's written for XCode3 but it worked for me using XCode4 (project's info.plist no longer displayed). The guide is bit wordy but 3 pages cover the whole process.
Apple Help Bundles can be found in
/Library/Documentation/Help
as with all bundles you have to Ctrl-Click -> Show Package Contents to see directory structure.
Many of Apple's own applications use the old Apple Help but Mail uses the new (10.6) bundle help. Look in this directory:
/Applications/Mail.app/Contents/Resources/Mail.help
Hope this helps.

How can I create Xcode docsets that look and work like the ones in Apple Core Library

I want to create a docset for my API that looks and works like the Apple Core Library docset. For example, look at the page for NSString.
I've tried Doxygen and I've tried headerdoc2html. Neither does very close to what I want.
The files generated by headerdoc don't have most of the higher-level structure that the Apple files do, and the graphics design is different. Down at the more detailed level, like when looking at a specific method, things are closer, but don't have all the detailed structure.
The files generated by Doxygen have a very different high-level structure, not to mention having a very different graphic design.
What else should I try? Or are there parameters to either of these tools that would give me something closer?
Thanks, Pat
The best I have found so far is Tomaz's appledoc. With it I can create apple style api documentation and instal it directly into the DocSets that Xcode is uisng. Works very well and is based on doxygen.
You can use Doxygen to generate Xcode docsets.
Unfortunatelly, the Doxygen output looking and behaving like an Apple Developer Library Document is still to be discovered...
I'm also really interested in this :( Ive been able to generate docsets and doxygen docs but if I could make them look the same (or approaching) as the "normal" apple docs (like SDK ones), that would be better. :/

Resources