Re: iPhone Programming For OS X Coders?

2010-04-19 Thread Michael A. Crawford
Sorry for chiming in late, Jens.  Been busy.

I like Cocoa Touch for iPhone OS 3 by  Jiva Devoe and The iPhone Developer's 
Cookbook by Erica Sadun.  Both focus specifically on UIKit elements with very 
little overlap to the desktop.  Exceptions are CoreData and 
NSURLConnect/NSURLRequest.  Still there are enough differences with CoreData 
and memory management that the overlap is warranted.

Both of these are excellent references and short tutorials for how to use 
views, controllers, navigation, touch-event processing, and UI* controls in 
iPhone OS.  No need to read through front to back, simply turn to the specific 
topic you are interested in implementing and you get pretty much what you need 
in just a page or two.

Of course you can save some cash by simply reading Apple's excellent on-line 
docs for UIKit and Cocoa-Touch.

-Michael

On Apr 7, 2010, at 12:49 AM, Kyle Sluder wrote:

 On Tue, Apr 6, 2010 at 9:42 PM, Philip Mobley p...@dreystone.com wrote:
 iPhone 3.2 SDK just added UIBezierPath, but the 3.2 OS will only run on iPad 
 right now.  Who knows if the iPhone will ever run 3.2 OS or if they will 
 just wait until 4.0.
 
 I imagine we'll find out on Thursday.
 
 --Kyle Sluder
 ___
 
 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/michaelacrawford%40me.com
 
 This email sent to michaelacrawf...@me.com

___

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


iPhone Programming For OS X Coders?

2010-04-06 Thread Jens Alfke
I have to confess that I haven't yet learned UIKit. The bits of iPhone  
development I've done so far have used networking and crypto APIs, and  
CoreAnimation, but hardly any of the UIKit classes.


What would be the best book for me to learn from? Obviously most of  
the books out there don't assume you know Objective-C or Foundation or  
even Xcode, and will take time teaching those. I'd rather not have to  
buy or skim through stuff like that. Are there any books that assume  
you already know Cocoa programming and just cover what's different on  
the iPhone OS?


—Jens___

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


Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Jack Nutting
On Wed, Apr 7, 2010 at 12:29 AM, Jens Alfke j...@mooseyard.com wrote:
 I have to confess that I haven't yet learned UIKit. The bits of iPhone
 development I've done so far have used networking and crypto APIs, and
 CoreAnimation, but hardly any of the UIKit classes.

 What would be the best book for me to learn from? Obviously most of the
 books out there don't assume you know Objective-C or Foundation or even
 Xcode, and will take time teaching those. I'd rather not have to buy or skim
 through stuff like that. Are there any books that assume you already know
 Cocoa programming and just cover what's different on the iPhone OS?

I don't know of any books like that, unfortunately.  However, in my
opinion, there are really just a couple of critical things that
anybody coming from Cocoa needs to learn in order to handle Cocoa
Touch well:  The usage of UIViewControllers (which basically take the
place of a window controllers/delegates in Cocoa), including the
special view controllers in UIKit that exist only to organize other
controllers into tabs and navigation trees; And the proper use of
UITableView (which you'll often use to display all sorts of things,
even things that don't feel tabular, just because it makes it easy
to deal with arbitrary large lists of things that may need to scroll)
and UITableViewCell, which is both more limited than its Cocoa
equivalent in some ways (tables only have a single column, so the cell
must fill the entire width) and more flexible in others (since it's a
full-fledged subclass of UIView, you can easily display *anything* in
there).

All of these are pretty well documented by Apple.  Good luck!

-- 
// 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


Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Bob Estes
I think Dave Mark's iPhone programming books are just what you want.

On Apr 6, 2010, at 6:29 PM, Jens Alfke wrote:

 I have to confess that I haven't yet learned UIKit. The bits of iPhone 
 development I've done so far have used networking and crypto APIs, and 
 CoreAnimation, but hardly any of the UIKit classes.
 
 What would be the best book for me to learn from? Obviously most of the books 
 out there don't assume you know Objective-C or Foundation or even Xcode, and 
 will take time teaching those. I'd rather not have to buy or skim through 
 stuff like that. Are there any books that assume you already know Cocoa 
 programming and just cover what's different on the iPhone OS?
 
 —Jens___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

___

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


Re: iPhone Programming For OS X Coders?

2010-04-06 Thread David Rowland

On Apr 6, 2010, at 3:29 PM, Jens Alfke wrote:

 I have to confess that I haven't yet learned UIKit. The bits of iPhone 
 development I've done so far have used networking and crypto APIs, and 
 CoreAnimation, but hardly any of the UIKit classes.
 
 What would be the best book for me to learn from? Obviously most of the books 
 out there don't assume you know Objective-C or Foundation or even Xcode, and 
 will take time teaching those. I'd rather not have to buy or skim through 
 stuff like that. Are there any books that assume you already know Cocoa 
 programming and just cover what's different on the iPhone OS?

For starters take a look at,

http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/CocoaFundamentals/WhatIsCocoa/WhatIsCocoa.html#//apple_ref/doc/uid/TP40002974-CH3-SW16

About halfway down is a discussion of Foundation Classes and a diagram showing 
which are implemented in MacOSX and iPhone OS.

Farther down are discussions of Application Kit and UIKit with diagrams showing 
their implementations. ___

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


Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Henry McGilton

On Apr 6, 2010, at 3:29 PM, Jens Alfke wrote:

 I have to confess that I haven't yet learned UIKit. The bits of iPhone 
 development I've done so far have used networking and crypto APIs, and 
 CoreAnimation, but hardly any of the UIKit classes.
 
 What would be the best book for me to learn from? Obviously most of the books 
 out there don't assume you know Objective-C or Foundation or even Xcode, and 
 will take time teaching those. I'd rather not have to buy or skim through 
 stuff like that. Are there any books that assume you already know Cocoa 
 programming and just cover what's different on the iPhone OS?


As Bob Estes said, the Dave Mark / Jeff LeMarche books are pretty good.

Apart from that, 

o   the programming concepts of the iPhone focus on presenting single screens 
of content
o   each screen of content is represented by a single UIView that is the root 
of a view hierarchy
o   each of those single views is in turn managed by a UIViewController or one 
of its sub-classes
o   there are various schemes for navigating between screens

So the architecture of a good iPhone application is determined by the screens 
of content and the
transitions between them.The logic of those transitions will end up being 
implemented via a network
of View Controllers.

Two of the primary navigation schemes are implemented by UITabBarController and 
UINavigationController
(usually in conjunction with a UITableViewController).

You see UITabBarController in action in the iPhone World Clock application.

You see UINavigationController (with UITableViewController) in the iPhone 
Settings application (and
many others).

The iPhone Weather application shows another navigational scheme known as Page 
Control, which
uses a UIScrollView as a 'paging' mechanism, and there's a UIPageControl widget 
on the bottom to
navigate that way if you wish to.

There's no NSBezierPath parallel on the phone, so you get down into Core 
Graphics a lot more than
with Appkit.

Core Data is available.  The phone does not have bindings, but does have KVC 
and KVO.

There's a lot more, of course, but you'll find many more similarities than 
differences (apart from 
UIWindow being a sub-class of UIView . . .). 

I think the UIKit team did a great job in 'lowering the barriers to entry' (to 
speak like a marketroid).

Cheers,
. . . . . . . .Henry___

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


Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Philip Mobley
On Apr 6, 2010, at 7:06 PM, Henry McGilton wrote:

 There's no NSBezierPath parallel on the phone, so you get down into Core 
 Graphics a lot more than with Appkit.

iPhone 3.2 SDK just added UIBezierPath, but the 3.2 OS will only run on iPad 
right now.  Who knows if the iPhone will ever run 3.2 OS or if they will just 
wait until 4.0.

___

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


Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Kyle Sluder
On Tue, Apr 6, 2010 at 9:42 PM, Philip Mobley p...@dreystone.com wrote:
 iPhone 3.2 SDK just added UIBezierPath, but the 3.2 OS will only run on iPad 
 right now.  Who knows if the iPhone will ever run 3.2 OS or if they will just 
 wait until 4.0.

I imagine we'll find out on Thursday.

--Kyle Sluder
___

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