Continuous zoom in MKMapView

2010-07-04 Thread Miguel Arroz
Hello,

  I'm trying to control a map view programmatically, and I need to zoom in and 
out with high accuracy (like when the user pinches it for zomming, the map may 
display an arbitrary level of zoom when the user stops touching the view).

  However, when I do it programmatically, with setRegion:animated: or 
setVisibleMapRect:animated:, the behavior is different than what I expect. It 
appears that the map view has some predefined zoom levels, and it will massage 
the region or rect I pass to those calls and adjust it to the nearest 
approximation for those predefined zoom levels. This prevents me from setting 
an arbitrary zoom level, or making a continuous zooming effect.

  Is there any way to tell the map view I want that specific region or rect, 
and not the approximation?

Miguel Arroz



smime.p7s
Description: S/MIME cryptographic signature
___

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: Download images and modify bundle?

2010-07-04 Thread Michael Watson
On 02 Jul, 2010, at 04:47, Andreas Mayer wrote:

> 
> Am 02.07.2010 um 10:01 Uhr schrieb sebi:
> 
>> When I download an image and want to keep it for further reference, I assume 
>> I have to store it in the documents directory and not in the app bundle, 
>> because otherwise I would invalidate the signature and the app wont run 
>> anymore. Is this correct?
> 
> You should always regard the app bundle as read only. The application might 
> have been installed with administrator rights so that the current user does 
> not have write access.
> 

To carry this a bit further, your application might not even reside on a volume 
to which the user could /ever/ have write access, regardless of permissions. 
Read-only disk image? DVD? Read-only network share? These are all possible 
scenarios for which an application should be prepared.

(I realize the thread wound up being about iPad, but this is a good thing to 
point out in general.)


--
mikey

___

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: NSAttributedString & iOS 4

2010-07-04 Thread Matt Neuburg
On Sat, 3 Jul 2010 17:12:39 -0700, Mike Manzano
 said:
>I see that NSAttributedString is in iOS 4, but both UITextView nor
UITextField's text property takes an NSString. Does that mean these views are
off limits if I want to use an attributed string?

NSAttributedString is there so you can now do Core Text (which lets you draw
text in multiple styles). UITextView and UITextField still display text is a
single font and size. m.

-- 
matt neuburg, phd = m...@tidbits.com, 
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



___

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: Where is the preset?

2010-07-04 Thread Quincey Morris
On Jul 4, 2010, at 11:00, k...@highrolls.net wrote:

> Please post a picture or give more information on "Organization Name" in 
> project info.  I right click the project in the tree, choose get info and am 
> taken to the target build settings in which I do not see "Organization Name".
> 
> To what "Organization Name" field of the project info are you referring?

It's on the "General" tab, not the "Build" tab. Look near the bottom, where the 
Base SDK popup is.


___

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: Where is the preset?

2010-07-04 Thread koko

In what version of Xcode?

-koko

On Jul 4, 2010, at 12:40 AM, Robert Vojta wrote:

Or just Get Info on the project and there's Company Name in the  
first tab. Here you can set project specific company name.


--
Sent from my iPhone

On 4.7.2010, at 1:51, rramage  wrote:


Please forgive this newbie question.  When I create a new
header & implementation file, it adds a header comment that
says in part:

//
//  Created by admin on 30/06/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

Where and how do I change "admin" and "__MyCompanyName__" so
I don't have to change every file after the creating?

Thank you,
Ronald
___

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/robert%40izyapps.com

This email sent to rob...@izyapps.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/koko%40highrolls.net

This email sent to k...@highrolls.net



___

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: Where is the preset?

2010-07-04 Thread koko


On Jul 4, 2010, at 12:43 AM, Quincey Morris wrote:



Also, in recent versions of Xcode (maybe since 3.1, I can't  
remember), you can set the company name for source files on a per- 
project basis via the "Organization Name" field of the project info.  
I'd say this is the best solution in general, since it doesn't  
depend on a ridiculously obscure default like the other solutions.




Please post a picture or give more information on "Organization Name"  
in project info.  I right click the project in the tree, choose get  
info and am taken to the target build settings in which I do not see  
"Organization Name".


To what "Organization Name" field of the project info are you referring?


-koko
___

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: Where is the preset?

2010-07-04 Thread Robert Vojta
Or just Get Info on the project and there's Company Name in the first tab. Here 
you can set project specific company name.

-- 
Sent from my iPhone

On 4.7.2010, at 1:51, rramage  wrote:

> Please forgive this newbie question.  When I create a new
> header & implementation file, it adds a header comment that
> says in part:
> 
> //
> //  Created by admin on 30/06/10.
> //  Copyright __MyCompanyName__ 2010. All rights reserved.
> //
> 
> Where and how do I change "admin" and "__MyCompanyName__" so
> I don't have to change every file after the creating?
> 
> Thank you,
> Ronald 
> ___
> 
> 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/robert%40izyapps.com
> 
> This email sent to rob...@izyapps.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: Flushing NSOutputStream gotten from NSNetService

2010-07-04 Thread Alexander Spohr
Am 02.07.2010 um 19:43 schrieb Jens Alfke:
> On Jul 2, 2010, at 5:36 AM, Alexander Spohr wrote:
> 
>> I have some streams gotten from NSNetServices getInputStream:outputStream:. 
>> I send very small chunks (from 1 to 1000 bytes) of data through them. I 
>> would like to flush the stream after I wrote a chunk to get the data 
>> immediately sent to the other side.
>> Is that possible or does the NSOutputStream flush after every 
>> write:maxLength: anyway?
> 
> TCP has some finely-tuned algorithms to decide when to send the buffer. 
> Usually it’s best not to second-guess these, but there are some cases where 
> you do need to. Terminal protocols like telnet and ssh use setsockopt to set 
> a special immediate mode (I can’t remember the name of the option but it’s in 
> the man page.).

TCP_NODELAY is not in the man page. But your pointer made me remember the thing 
I needed:

int yes = 1;
setsockopt(CFSocketGetNative(aSocket), IPPROTO_TCP, TCP_NODELAY, (void *)&yes, 
sizeof(yes));

Thanks a lot,

atze


___

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