On Tue, Aug 31, 2010 at 9:01 AM, Jay Reynolds Freeman <jay_reynolds_free...@mac.com> wrote: > I need to construct a specialized keyboard (the software kind) for an iPad > app I am working on (using the SDKs and other tools that are presently > available to all developers). Searching the net and the developer > documentation finds many ad-hoc examples of how to do it, but I have not > found any document from Apple that suggests how to do it right. Apple has > developed enough keyboards that there must be a canonical way to do it. Can > anyone point me at any hints as to what that is? > > (What I need is actually a set of keyboards -- letters, numbers, and extra > punctuation -- but with a couple of custom punctuation keys substituted for > one of the numeric shift keys on the "letter" keyboard.)
Hard to say what Apple's "canonical" way might be (they don't give us the source for their own keyboards) but in general, creating your own keyboard on iOS 3.2 or later is really quite simple. You design your keyboard layout in IB just like any other Cocoa view, and can pretty easily hook it up. Not to toot my own horn (thought I probably should, and now will) but my latest book, "Beginning iPad Development for iPhone Developers" includes some examples and walkthroughs of the new keyboard APIs in chapter 9, including an RPN calculator whose input comes entirely from a custom keyboard: http://apress.com/book/view/1430230215 That page contains a link to the source code archive, which you can download for free. -- // jack // http://nuthole.com // http://learncocoa.org _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com