Re: updates for retina

2012-06-18 Thread Nathan Sims
On Jun 15, 2012, at 11:05 PM, Ken Thomases wrote: > High Resolution Guidelines for OS X > Is there an equivalent iOS document? _

Re: iOS + and X buttons

2012-05-17 Thread Nathan Sims
On May 7, 2012, at 9:07 AM, Alex Zavatone wrote: > I just added a blue + button to my iOS button graphics. It's almost 100% > accurate and should be good enough if anyone wants to reuse it. > > The edges of the + inside the blue are not as sharp as Apple's, and the + > itself is almost pixel

Re: WWDC

2012-04-25 Thread Nathan Sims
The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT. *No one* I know of was able to obtain a ticket. Maybe they need a raffle or some such? On Apr 25, 2012, at 10:19 AM, Rick Mann wrote: > Is WWDC really sold out already? I just got the notification email... > > -- > Rick

Re: Calling a Cocoa library from C

2011-11-14 Thread Nathan Sims
On Nov 14, 2011, at 10:05 AM, Kyle Sluder wrote: > The template assumes your library is going to vend Objective-C classes to > apps that link against it. On Nov 14, 2011, at 10:01 AM, Jens Alfke wrote: > It sounds like you are getting the library and the source files mixed up? It's the templ

Re: Calling a Cocoa library from C

2011-11-14 Thread Nathan Sims
t a class, so why does it have an @implementation? --- // // libaaa.h // libaaa // // Created by Nathan Sims on 11/14/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import @interface libaaa : NSObject { } @end -

Re: Calling a Cocoa library from C

2011-11-12 Thread Nathan Sims
On 12 Nov 2011, at 18:45, Nathan Sims wrote: > On Nov 12, 2011, at 10:56 AM, Thomas Davie wrote: >> Okay, does this mean that an object instantiated by a C function has >> persistence across C function calls? In the example above you have: >> [objcCode call]; >> I

Re: Calling a Cocoa library from C

2011-11-12 Thread Nathan Sims
On Nov 11, 2011, at 6:22 PM, Wim Lewis wrote: > int get_float_data(float *result1, float *result2) > { > NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; > @try { > [objcCode call]; > *result1 = [more stuff]; > etc.; > } @catch { > fprintf(stderr, "omg doomed!\n"); > etc.; > }

Calling a Cocoa library from C

2011-11-11 Thread Nathan Sims
Newb question. I need to create an OS X Cocoa library that is going to be called from a C program. The C program's interface will be simple, along the lines of: retval=get_float_data(&float1,&float2); where get_float_data() is a function that resides in the Cocoa library and invokes Objc co

Re: Logging in Xcode 4.2

2011-11-11 Thread Nathan Sims
On Nov 10, 2011, at 9:13 AM, Kyle Sluder wrote: > On Thu, Nov 10, 2011 at 8:44 AM, Richard Somers > wrote: >> I think they will eventually get it right. No way am I going back to Xcode 3. > > Xcode brought with it some massive improvements (workspaces with > multiple projects!) at some serious u

iOS camera image resolution selection

2011-08-02 Thread Nathan Sims
When retrieving an image from the iPad's rear camera, I remember there being an API that would allow you to select from a number of resolutions, ranging from thumbnail up to native. Where would I find this information? I'm trying to find out, among other things, if the iPad can return a 640x480

Re: iOS: Differentiating between 1 or 2 finger touches

2011-07-12 Thread Nathan Sims
On Jul 12, 2011, at 8:33 PM, Roland King wrote: > On Jul 13, 2011, at 11:27, Nathan Sims wrote: > >> If I put one finger down on the UIView, I get a -touchesBegan:withEvent: >> event. If I keep that finger down and put another down also I don't seem to >> get any

Re: iOS: Differentiating between 1 or 2 finger touches

2011-07-12 Thread Nathan Sims
On Jul 12, 2011, at 5:28 PM, Greg Parker wrote: > On Jul 12, 2011, at 4:49 PM, Nathan Sims wrote: >> On Jul 12, 2011, at 4:46 PM, Fritz Anderson wrote: >>> On 12 Jul 2011, at 6:30 PM, Nathan Sims wrote: >>>> I have a, iOS 4.3.3 UIView that is touch-enabled. When my

Re: iOS: Differentiating between 1 or 2 finger touches

2011-07-12 Thread Nathan Sims
On Jul 12, 2011, at 4:46 PM, Fritz Anderson wrote: > On 12 Jul 2011, at 6:30 PM, Nathan Sims wrote: > >> I have a, iOS 4.3.3 UIView that is touch-enabled. When my >> -touchesBegan:withEvent: method gets called, I can't figure out how to >> differentiate when the

iOS: Differentiating between 1 or 2 finger touches

2011-07-12 Thread Nathan Sims
I have a, iOS 4.3.3 UIView that is touch-enabled. When my -touchesBegan:withEvent: method gets called, I can't figure out how to differentiate when the user touched the screen with one finger or with two. Either way, I receive this: timestamp: 423888 touches: {( phase: Began tap count: 1

Re: Progress Indicators Spin vs Bar

2011-06-20 Thread Nathan Sims
On Jun 20, 2011, at 1:14 AM, Kyle Sluder wrote: > I look forward to the day when OS X automatically kills beachballing programs > after a certain time, a la iOS. Because then maybe iTunes will finally get > rewritten. Ditto for Safari. ___ Cocoa-de

Re: Weird behavior of -URLByAppendingPathComponent:

2011-06-20 Thread Nathan Sims
FWIW, the standard (can't remember which RFC I saw this in) is for treating a double slash // (or any number of slashes) as a single slash / in URLs (after the initial http://). On Jun 19, 2011, at 9:14 PM, Jens Alfke wrote: > Something seems wrong with -[NSURL URLByAppendingPathComponent:] --

iOS: drawing the end of a CGPath differently

2011-06-03 Thread Nathan Sims
How would I go about drawing a terminus at the end of a path? I'm drawing a path in an overlay to a MKMapView, but I would like to somehow designate the end point of the path to differentiate it from the rest of the path. CGContextAddPath(context,path); CGContextSetRGBStrokeColor

Re: Code style (was: Notify With Parameters)

2011-06-02 Thread Nathan Sims
On Jun 2, 2011, at 11:38 AM, Jens Alfke wrote: > > On Jun 2, 2011, at 1:17 AM, Conrad Shultz wrote: > >> Google's Objective-C style guide >> (http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml) >> directs that spaces in method declarations be minimized. For example: > > There’s a l

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread Nathan Sims
On Jun 2, 2011, at 10:36 AM, David Duncan wrote: > On Jun 2, 2011, at 10:31 AM, Jim Adams wrote: > >> Why? Because the timeout was inordinately long with no way to shorten it >> other than create my own timeout. Users want responsiveness. One of the >> things I hate more than anything is when a

Re: iOS: multiple view controllers, one nib?

2011-05-19 Thread Nathan Sims
On May 18, 2011, at 9:12 PM, Shawn Erickson wrote: > initWithNibName:bundle: instantiates a unique object graph from the > objects serialized in the xib each time it is called. This object > graph is connected with the files owner as defined in your xib. I > assume the QuadNViewController class h

Re: iOS: multiple view controllers, one nib?

2011-05-18 Thread Nathan Sims
Okay, that looks like a "go". I certainly have my work cut out for me :) Thanks Luke, Eric, Mikkel. -Nate On May 18, 2011, at 12:40 PM, Mikkel Islay wrote: > On 18 May 2011, at 20:32, Nathan Sims wrote: > >> Hmm, but then how would each custom class communicate with

Re: iOS: multiple view controllers, one nib?

2011-05-18 Thread Nathan Sims
ay from the view > controller's code. > > > Google Voice: (508) 656-0622 > Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki > http://blog.ericd.net > > > > On Wed, May 18, 2011 at 3:19 PM, Nathan Sims > wrote: > Okay, but

Re: iOS: multiple view controllers, one nib?

2011-05-18 Thread Nathan Sims
ntroller. And, if you did that, all > your views would naturally be built in the one nib that defines your view > controller :) > > Luke > > On May 18, 2011, at 11:53 AM, Nathan Sims wrote: > >> I'm writing an iPad app that has its main screen subdivided into 4

iOS: multiple view controllers, one nib?

2011-05-18 Thread Nathan Sims
I'm writing an iPad app that has its main screen subdivided into 4 equal regions, each with a UIView, all defined in one IB nib. I have a dedicated view controller class for each view. When I instantiate the view controller class for each quadrant's view with -initWithNibName:bundle:, I have to

Re: Creating an iPad-specific xib in IB

2011-05-17 Thread Nathan Sims
Okay, fishing through the menus, I found "Create iPad Version". Cool. On May 17, 2011, at 10:48 AM, Nathan Sims wrote: > I'm making an iPad-only view-based app. The large screen size of the iPad > will be split into 4 views, each operating independently, so the iPa

Creating an iPad-specific xib in IB

2011-05-17 Thread Nathan Sims
I'm making an iPad-only view-based app. The large screen size of the iPad will be split into 4 views, each operating independently, so the iPad is a perfect fit. However, in Interface Builder, the default xibs that are created with the project appear to be iPhone-sized. How do I get IB to offer

Re: Autorotation of toolbar?

2011-05-13 Thread Nathan Sims
Indeed! I had forgotten all about 'them springs'. Thanks! On May 13, 2011, at 3:17 PM, Dave DeLong wrote: > Configure your autoresizing springs and struts correctly? > > Dave > > On May 13, 2011, at 2:42 PM, Nathan Sims wrote: > >> Hi, I have a very b

Autorotation of toolbar?

2011-05-13 Thread Nathan Sims
Hi, I have a very basic iPhone app. It consists of an MKMapView and a UIToolBar at the top. It works, but when I rotate the iPhone, the toolbar goes off to parts unknown and a blank area appears above the map view. How do I correlate/sync the autorotation of the map view with the toolbar? iOS 4.

Re: Getting mouse cursor position

2011-05-06 Thread Nathan Sims
On May 6, 2011, at 4:13 PM, Nick wrote: > May this is just a wrong function to retrieve the cursor's position? > Or it doesnt work for some older builds of OX X 10.6.x ? Oh, I thought you were looking for the cursor's hotspot, not its location. NSPoint pos = [NSEvent mouseLocation]; NSLog(@"Mou

Re: Getting mouse cursor position

2011-05-06 Thread Nathan Sims
On May 6, 2011, at 3:55 PM, eveningnick eveningnick wrote: > I tried to use method -hotSpot of NSCursor, but it returns >> sc x=-2057825613, y=0 > > -(IBAction)timeHandler:(id)timer { >//NSCursor *sc = [NSCursor currentSystemCursor]; > NSCursor *sc = [NSCursor currentCursor]; >

Re: 10.6 Snow Leopard API for blocking screensaver/idle?

2011-02-14 Thread Nathan Sims
http://developer.apple.com/library/mac/#qa/qa2004/qa1160.html - Nate On Feb 14, 2011, at 2:38 PM, Jean-Daniel Dupas wrote: > > Le 14 févr. 2011 à 23:03, Eric Wing a écrit : > >> Is there an API in Snow Leopard to suppress/block/prevent the >> screensaver from coming up? > > The new API is supp