Formatter for angle display?

2012-01-17 Thread Vincent Habchi
Hi everybody, I’m trying to display decimal angles in DMS format (e.g. : 10,5 - 10° 30'). Apparently, NSNumberFormatter does not know about angles. Has anybody heard of a third party NSFormatter class (NSAngleFormatter?) or do I have to develop a custom formatter from scratch? If nothing

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Fritz Anderson
On 16 Jan 2012, at 3:57 PM, Jon Sigman wrote: What's the typical way to add pinch capability to a UIImageView? Put it in a UIScrollView. — F ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Formatter for angle display?

2012-01-17 Thread Sean McBride
On Tue, 17 Jan 2012 16:57:18 +0100, Vincent Habchi said: I’m trying to display decimal angles in DMS format (e.g. : 10,5 - 10° 30'). Apparently, NSNumberFormatter does not know about angles. Has anybody heard of a third party NSFormatter class (NSAngleFormatter?) or do I have to develop a custom

Giving NSProgressIndicator a new look?

2012-01-17 Thread Robert Monaghan
Hi Everyone.. Can someone point me to a blog or webpage that describes how to give an existing NSControl a face lift? I want to change the baby blue appearance of NSProgressIndicator, to match my UI. Thanks! bob, ___ Cocoa-dev mailing list

Re: Formatter for angle display?

2012-01-17 Thread vincent habchi
Sean, NSNumberFormatter does not support that. But writing such a custom formatter would be a few dozen line of code, and pretty straightforward. I agree this is fairly simple; I just wanted to avoid the task altogether! :) BTW, such custom formatter would, of course, not be usable in IB,

Re: Formatter for angle display?

2012-01-17 Thread Sean McBride
On Tue, 17 Jan 2012 17:38:31 +0100, vincent habchi said: NSNumberFormatter does not support that. But writing such a custom formatter would be a few dozen line of code, and pretty straightforward. I agree this is fairly simple; I just wanted to avoid the task altogether! :) BTW, such custom

Re: Giving NSProgressIndicator a new look?

2012-01-17 Thread Laurent Daudelin
On Jan 17, 2012, at 08:36, Robert Monaghan wrote: Hi Everyone.. Can someone point me to a blog or webpage that describes how to give an existing NSControl a face lift? I want to change the baby blue appearance of NSProgressIndicator, to match my UI. Robert, How do you mean, to match my

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Jon Sigman
Here's what I've tried: IBOutlet UIScrollView *scrollView;  // created placed on GUI with IB @synthesize scrollView;             // hooked up from w/in IB - (void)viewDidLoad {     [super viewDidLoad];     imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@default.png]];    

Re: Giving NSProgressIndicator a new look?

2012-01-17 Thread Todd Freese
Check out http://cocoacontrols.com/. (my new favorite site) It has several NSProgressIndicator subclasses. Todd On Jan 17, 2012, at 10:36 AM, Robert Monaghan wrote: Hi Everyone.. Can someone point me to a blog or webpage that describes how to give an existing NSControl a face lift? I

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Eric E. Dolecki
Did you set the contentSize for the scroll view? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Tue, Jan 17, 2012 at 2:11 PM, Jon Sigman rf_...@yahoo.com wrote: Here's what I've tried: IBOutlet UIScrollView

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Jon Sigman
I just added this:     [scrollView setContentSize:CGSizeMake(128.0,96.0)]; Now I can move the image about within the UIScrollView, but I can't pinch/zoom it. From: Eric E. Dolecki edole...@gmail.com To: Jon Sigman rf_...@yahoo.com Cc: Fritz Anderson

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread David Duncan
You need to set the min/max magnification properties as well. You may also need to implement the delegate protocol to tell the scroll view which view to zoom as well (I'm almost certain this is necessary, but I haven't done this in a little bit). On Jan 17, 2012, at 11:30 AM, Jon Sigman wrote:

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Fritz Anderson
On 17 Jan 2012, at 1:30 PM, Jon Sigman wrote: I just added this: [scrollView setContentSize:CGSizeMake(128.0,96.0)]; Now I can move the image about within the UIScrollView, but I can't pinch/zoom it. There are excellent tutorials about this, and you would profit from a skimming of the

RE: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Julius Oklamcak
You need to implement the -viewForZoomingInScrollView: UIScrollViewDelegate method and return the image view. Please have a look at Apple's ScrollViewSuite sample code: http://developer.apple.com/library/ios/#samplecode/ScrollViewSuite/Introduct ion/Intro.html I just added this:    

Re: iOS: Adding pinch-zoom to UIImageView

2012-01-17 Thread Jon Sigman
Yep, specifying a delegate and implementing -viewForZoomingInScrollView: did the trick! (As a newb, I thought this functionality was innate in UIImageView, but...) Thanks to everyone for your help! From: Julius Oklamcak juli...@icodemonks.com To: 'Jon

Re: music.read-only sandbox entitlement doesn't seem to work

2012-01-17 Thread Michael Crawford
I've figured out what is going on (I think). As long as your iTunes library is installed in this path: ~/Music/iTunes/iTunes Media/, the music entitlement works. It is path specific! This makes com.apple.security.assets.music.* only sligtly better than

Re: music.read-only sandbox entitlement doesn't seem to work

2012-01-17 Thread Laurent Daudelin
On Jan 17, 2012, at 15:05, Michael Crawford wrote: I've figured out what is going on (I think). As long as your iTunes library is installed in this path: ~/Music/iTunes/iTunes Media/, the music entitlement works. It is path specific! This makes com.apple.security.assets.music.* only

Silicon Valley Cocoaheads January Meeting!

2012-01-17 Thread Tedd Fox
We would like to thank Google, Inc. and David Phillip Oster for the room When: Thursday, November 17, 2011 19:00 Where: Grand Teton Tech Talk Room, GWC-2 (Google West Campus 2) 1501 Salado Dr. Mountain View CA. Speakers Slated: David Phillip Oster - Putting UITableViews inside

Fw: Silicon Valley Cocoaheads January Meeting!

2012-01-17 Thread Tedd Fox
That is 2012 … oh boy -- Tedd Fox Sent with Sparrow (http://www.sparrowmailapp.com/?sig) Forwarded message: From: Tedd Fox tedd...@me.com To: Cocoa-dev@lists.apple.com Cc: cocoaheads-annou...@lists.sourceforge.net Date: Tuesday, January 17, 2012 5:18:19 PM Subject: Silicon Valley

CORRECTION: Re: Silicon Valley Cocoaheads January Meeting!

2012-01-17 Thread Tedd Fox
Sorry for all of the confusion on the dates. I copy/pasted the wrong event dates We would like to thank Google, Inc. and David Phillip Oster for the room When: Thursday, January 19, 2012 19:00 Where: Grand Teton Tech Talk Room, GWC-2 (Google West Campus 2) 1501 Salado Dr.

TimeZones

2012-01-17 Thread Appa Rao Mulpuri
Hi List, Quick question related to Time zones. I want to get the Time zone standard name for the particular timezone. I have used following code base to get the string, which is working perfect. NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@en_US]; NSString *timeZoneId =