WebView (Mac) Scroll - quick question

2011-12-12 Thread Ben
WebView for Mac development appears to be quite different than UIWebview for 
IOS.

How do I get a notification (or delegate) method which fires when the scrollbar 
moves ?

I see nothing of use in the WebView documentation.

___

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: WebView (Mac) Scroll - quick question

2011-12-12 Thread Mike Abdullah
That depends on what you mean by "when the scrollbar moves". The user scrolls? 
Or they click a link which causes the page to scroll? Perhaps both?

Note also that there's a dedicated webkit-sdk mailing list which these kind of 
questions are best targeted towards.

On 12 Dec 2011, at 12:20, Ben wrote:

> WebView for Mac development appears to be quite different than UIWebview for 
> IOS.
> 
> How do I get a notification (or delegate) method which fires when the 
> scrollbar moves ?
> 
> I see nothing of use in the WebView documentation.
> 
> ___
> 
> 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/cocoadev%40mikeabdullah.net
> 
> This email sent to cocoa...@mikeabdullah.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: Best way to manage double-clicked files?

2011-12-12 Thread C.W. Betts
Thank you! That was exactly what I was looking for.
On Dec 10, 2011, at 6:00 PM, Lee Ann Rucker wrote:

> Try the application delegate method application:openFile: - it gets called 
> before the NSDocument handling gets a shot at it.
> 
> - Original Message -
> From: "C.W. Betts" 
> To: "julius" , "Cocoa Development" 
> 
> Sent: Saturday, December 10, 2011 4:51:44 PM
> Subject: Re: Best way to manage double-clicked files?
> 
> 
> On Dec 10, 2011, at 8:23 AM, julius wrote:
> 
>> On Fri, 09 Dec 2011 13:14:26 -0700 C.W. Betts wrote
>>> 
>>> What is the best way to handle double-clicked files in an application that 
>>> doesn't use documents? The reason I ask is because a project I'm working 
>>> on, PCSX-R, currently uses NSDocument subclasses to handle opening of files 
>>> double-clicked in the Finder. However, the 
>>> readFromFileWrapper:ofType:error: function returns NO even if the file is 
>>> loaded to prevent the document window from popping up (I have it se with no 
>>> close buttons; the window is called modally), but it shows an error that 
>>> the file wasn't opened, despite it being so.  Should I use a different way 
>>> of managing double-clicked files, or is there a function that I should 
>>> overload on my NSDocument subclass?
>>> 
>>> --
>> Hi, 
>> not sure if understand your question.
>> 
>> I am assuming
>> 1. you want program to start from double click of document file
>> 2. you want to be able to open program by clicking application file but do 
>> not want the app to open an empty document window.
>> 
> I want it so that when I double-click a file in Finder, a window pops up and 
> lets me select an option, then the window goes away. I'm wondering if 
> NSDocument is the best way to do this, or if another method would be better 
> suited.  This is the current code I'm using for the memory card chooser:
> 
> - (int)showMemoryCardChooserForFile:(NSString *)theFile
> {
>   if (!changeMemCardSheet) {
>   [NSBundle loadNibNamed:[self windowNibName] owner:self];
>   }
>   [cardPath setObjectValue:theFile];
>   
>   [NSApp runModalForWindow:changeMemCardSheet];
>   
>   [NSApp endSheet:changeMemCardSheet];
>   [changeMemCardSheet orderOut:self];
>   
>   return memChosen;
> }
> 
> - (BOOL)readFromFileWrapper:(NSFileWrapper *)fileWrapper ofType:(NSString 
> *)typeName error:(NSError **)outError
> {
>   int chosen = [self showMemoryCardChooserForFile:[fileWrapper filename]];
>   if (chosen == 0) {
>   return NO;
>   } else {
>   [ConfigurationController setMemoryCard:chosen toPath:[[self 
> fileURL] path]];
>   //TODO: make this return YES so that "File Can't be Opened" 
> dialog box doesn't pop up, but the window itself doesn't stay on the screen.
>   return NO;
>   }
> }
> It is returning NO because if I return YES, after the modal window pops up, a 
> button is pressed that will dismiss the modal dialog, the window pops up 
> again, non-modal this time, making the button that would have closed it not 
> work. But because I return NO, a message pops up that says the file could not 
> be opened. I want to fix that if at all possible.
> 
> I already discovered the fix for no. 
> 2.___
> 

___

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


Business as usual: Flipped context causing grief

2011-12-12 Thread Graham Cox
I'm drawing objects into a bitmap rep and a context created from it.

The y axis extends downwards (i.e. it's flipped).

Normal objects render correctly.

Text is inverted.



This problem keeps rearing its ugly head. I'm still not sure I really 
understand it.

When I set up the context from the bitmap, I create a transform that flips the 
context. Paths and so forth appear the right way up. I'm rendering text using 
the built-in text rendering engine (NSLayoutManager) and it fails to notice 
that the context is flipped, so it appears to add its own flipping transform 
and so text is inverted. I need to let the context I create from the bitmap 
know that it is flipped, but there is no -setFlipped: method on 
NSGraphicsContext, and the method that creates a context from a bitmap doesn't 
let me pass the flippedness, as the method for creating a context from a 
graphicsPort does.

How do I inform the context that it is flipped, so that text is rendered 
correctly?

--Graham


My code:

- (NSBitmapImageRep*)   bitmapOfSelectedObjectsWithResolution:(NSInteger) dpi
{
NSBitmapImageRep*   rep;
NSRect  sb = [self selectionBounds];

if( dpi == 0 )
dpi = 72;

NSInteger pixelsWide, pixelsHigh;

pixelsWide = ceil(NSWidth( sb ) * dpi / 72.0 );
pixelsHigh = ceil(NSHeight( sb ) * dpi / 72.0 );

rep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL
pixelsWide:pixelsWide
pixelsHigh:pixelsHigh
 bitsPerSample:8
 samplesPerPixel:4
hasAlpha:YES
isPlanar:NO

colorSpaceName:NSCalibratedRGBColorSpace
bytesPerRow:0
bitsPerPixel:0];

if( rep == nil )
[NSException raise:kDrawkitErrorDomain format:@"bitmap could 
not be created for selection export"];

NSGraphicsContext* bmContext = [NSGraphicsContext 
graphicsContextWithBitmapImageRep:rep];
[NSGraphicsContext saveGraphicsState];
[NSGraphicsContext setCurrentContext:bmContext];

// transform the origin to where the selected objects are, and scale to 
allow for dpi and flippedness

NSSize  scale;
CGFloat yOrigin = -NSMinY( sb );

scale.width = (CGFloat)pixelsWide / NSWidth( sb );
scale.height = (CGFloat)pixelsHigh / NSHeight( sb );

if([[self drawing] isFlipped])  // generally true
{
yOrigin = -NSMaxY( sb ); 
scale.height *= -1.0;
}

NSAffineTransform* transform = [NSAffineTransform transform];
[transform scaleXBy:scale.width yBy:scale.height];
[transform translateXBy:-NSMinX( sb ) yBy:yOrigin];
[transform concat];

// seems I need to let the context know it is flipped at this point for 
true rendering of text -- but how

[self drawSelectedObjects];

[NSGraphicsContext restoreGraphicsState];

return [rep autorelease];
}

___

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: WebView (Mac) Scroll - quick question

2011-12-12 Thread Ben
When the user scrolls. 
I wasn't sure if to post my query into the webkit-sdk mailing list or not. As 
UIWebview implemented UIScrollViewDelegate in IOS, I assumed the question was 
best directed to this forum, as I had hoped to find a Cocoa solution that had 
somehow eluded me.

Thanks Mike

On 12 Dec 2011, at 15:23, Mike Abdullah wrote:

> That depends on what you mean by "when the scrollbar moves". The user 
> scrolls? Or they click a link which causes the page to scroll? Perhaps both?
> 
> Note also that there's a dedicated webkit-sdk mailing list which these kind 
> of questions are best targeted towards.
> 
> On 12 Dec 2011, at 12:20, Ben wrote:
> 
>> WebView for Mac development appears to be quite different than UIWebview for 
>> IOS.
>> 
>> How do I get a notification (or delegate) method which fires when the 
>> scrollbar moves ?
>> 
>> I see nothing of use in the WebView documentation.
>> 
>> ___
>> 
>> 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/cocoadev%40mikeabdullah.net
>> 
>> This email sent to cocoa...@mikeabdullah.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: Web Kit - playing HTML5 video in a separate window

2011-12-12 Thread Jens Alfke

On Dec 9, 2011, at 9:23 PM, Nick wrote:

> This is what I'd like to have - to be able to play video in a
> window/fullscreen, preferably having my own movie controls (similar to
> iPhone's ones).

You’re going to have to do something like intercepting the click on the video, 
finding the URL of the movie, and opening up your own HTML-based UI with player 
controls around a  tag pointed at the same movie. The only tricky part 
seems to be intercepting the click, but I believe there are WebView delegate 
methods (or override points) to handle that. You might try asking on the 
webkitsdk-dev list.

—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: Business as usual: Flipped context causing grief

2011-12-12 Thread Keary Suska
On Dec 12, 2011, at 4:04 PM, Graham Cox wrote:

> I'm drawing objects into a bitmap rep and a context created from it.
> 
> The y axis extends downwards (i.e. it's flipped).
> 
> Normal objects render correctly.
> 
> Text is inverted.
> 
> 
> 
> This problem keeps rearing its ugly head. I'm still not sure I really 
> understand it.
> 
> When I set up the context from the bitmap, I create a transform that flips 
> the context. Paths and so forth appear the right way up. I'm rendering text 
> using the built-in text rendering engine (NSLayoutManager) and it fails to 
> notice that the context is flipped, so it appears to add its own flipping 
> transform and so text is inverted. I need to let the context I create from 
> the bitmap know that it is flipped, but there is no -setFlipped: method on 
> NSGraphicsContext, and the method that creates a context from a bitmap 
> doesn't let me pass the flippedness, as the method for creating a context 
> from a graphicsPort does.
> 
> How do I inform the context that it is flipped, so that text is rendered 
> correctly?

IIRC, NSLayoutManager expects that the view it is drawing in is flipped 
(-isFlipped returns YES). If it isn't, it will draw text inverted. S.. I 
think all you need is to implement isFlipped returning YES.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

___

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: Business as usual: Flipped context causing grief

2011-12-12 Thread Graham Cox

On 13/12/2011, at 12:00 PM, Keary Suska wrote:

> IIRC, NSLayoutManager expects that the view it is drawing in is flipped

It expects the CONTEXT it is drawing into is flipped, and in order to do that 
it asks the CONTEXT the value of -isFlipped.

If the context is associated with a view, the view is queried.

I don't have a view, I have a context. I create the context from a bitmap rep 
(I'm rendering text, and other things, into an offscreen image). When you do 
that, it assumes that the context/bitmap is not flipped, and -isFlipped returns 
NO. There is no way I can see to return YES from isFlipped, or pass 
setFlipped:YES to the context, or set the flippedness to YES when the context 
is created.

That is the problem I have.

> (-isFlipped returns YES). If it isn't, it will draw text inverted. S.. I 
> think all you need is to implement isFlipped returning YES.


I suppose I could do this by subclassing NSGraphicsContext, but that seems a 
surprising requirement given the task I'm trying to perform. Surely correctly 
rendering text into a bitmap rep is something that the design of the graphics 
system has anticipated?

--Graham



___

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: Business as usual: Flipped context causing grief

2011-12-12 Thread Keary Suska
On Dec 12, 2011, at 6:07 PM, Graham Cox wrote:

> 
> On 13/12/2011, at 12:00 PM, Keary Suska wrote:
> 
>> IIRC, NSLayoutManager expects that the view it is drawing in is flipped
> 
> It expects the CONTEXT it is drawing into is flipped, and in order to do that 
> it asks the CONTEXT the value of -isFlipped.
> 
> If the context is associated with a view, the view is queried.
> 
> I don't have a view, I have a context. I create the context from a bitmap rep 
> (I'm rendering text, and other things, into an offscreen image). When you do 
> that, it assumes that the context/bitmap is not flipped, and -isFlipped 
> returns NO. There is no way I can see to return YES from isFlipped, or pass 
> setFlipped:YES to the context, or set the flippedness to YES when the context 
> is created.
> 
> That is the problem I have.


Sorry I missed the specific approach. The docs say for NSGraphicsContext 
-isFlipped:

"The state is determined by sending isFlipped to the receiver’s view that has 
focus. If no view has focus, returns NO unless the receiver is instantiated 
usinggraphicsContextWithGraphicsPort:flipped: specifying YES as the flipped 
parameter."

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

___

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: Business as usual: Flipped context causing grief

2011-12-12 Thread Aki Inoue
Graham,

+[NSGraphicsContext graphicsContextWithBitmapImageRep:] is a cover method of a 
more general, +[NSGraphicsContext graphicsContextWithGraphicsPort:flipped:].

You can create a CGBitmapContextRef out of the bitmap rep & pass to the latter 
method.

Aki

On 2011/12/12, at 17:07, Graham Cox wrote:

> 
> On 13/12/2011, at 12:00 PM, Keary Suska wrote:
> 
>> IIRC, NSLayoutManager expects that the view it is drawing in is flipped
> 
> It expects the CONTEXT it is drawing into is flipped, and in order to do that 
> it asks the CONTEXT the value of -isFlipped.
> 
> If the context is associated with a view, the view is queried.
> 
> I don't have a view, I have a context. I create the context from a bitmap rep 
> (I'm rendering text, and other things, into an offscreen image). When you do 
> that, it assumes that the context/bitmap is not flipped, and -isFlipped 
> returns NO. There is no way I can see to return YES from isFlipped, or pass 
> setFlipped:YES to the context, or set the flippedness to YES when the context 
> is created.
> 
> That is the problem I have.
> 
>> (-isFlipped returns YES). If it isn't, it will draw text inverted. S.. I 
>> think all you need is to implement isFlipped returning YES.
> 
> 
> I suppose I could do this by subclassing NSGraphicsContext, but that seems a 
> surprising requirement given the task I'm trying to perform. Surely correctly 
> rendering text into a bitmap rep is something that the design of the graphics 
> system has anticipated?
> 
> --Graham
> 
> 
> 
> ___
> 
> 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/aki%40apple.com
> 
> This email sent to a...@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: Business as usual: Flipped context causing grief

2011-12-12 Thread Graham Cox
OK, that works, I get the desired result. Thanks - that confirms my 
understanding about the flippedness of the context and so on, which is good.

So I have a question now about efficiency. I create a NSBitmapImageRep, and I 
let it allocate the buffer memory. In order to create a GCBitmapContext using 
the same memory, I pass the result of -[NSBitmapImageRep bitmapData] to 
CGBitmapContextCreate(). I can then pass this context as suggested to 
+[NSGraphicsContext graphicsContextWithGraphicsPort:flipped:]

When I get the bitmapData from the rep, is that the same block of memory it 
allocated, or is it a copy? I seem to recall a discussion that this could 
allocate memory in video RAM and hence will return a copy if forced to by 
asking for the bytes. If it does do that, it probably doesn't matter (and it 
works) but ideally it would be nice to avoid any such copy if possible.

To put it another way: what is the most efficient and straightforward way to 
turn a NSBitmapImageRep into a CGBitmapContextRef?


--Graham





On 13/12/2011, at 12:19 PM, Aki Inoue wrote:

> Graham,
> 
> +[NSGraphicsContext graphicsContextWithBitmapImageRep:] is a cover method of 
> a more general, +[NSGraphicsContext graphicsContextWithGraphicsPort:flipped:].
> 
> You can create a CGBitmapContextRef out of the bitmap rep & pass to the 
> latter method.
> 
> Aki



___

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


Our app can't store a simple key/value pair in iCloud. Any idea why?

2011-12-12 Thread G S
Hi all.

I've configured our app for iCloud usage and push notifications with
the appropriate entitlements, under a provisioning profile that is set
up for these, and a developer profile that's associated with this
provisioning profile.

The application identifier matches what's specified in the
provisioning profile (com.ourcompany.ourproduct).  I don't get any
errors when building the app.

iCloud is enabled on my phone, and is working (as evidenced by my
calendar, contacts, and bookmarks being updated).

And yet this fails:

NSUbiquitousKeyValueStore* iCloudStore = [NSUbiquitousKeyValueStore
defaultStore];
[iCloudStore setString:localID forKey:@"ourKey"];

If I call synchronize after this, it returns NO.  If I allow plenty of
time for the update to occur, subsequent attempts to retrieve the data
still fail.

Any idea what the culprit could be here?

Thanks!

Gavin
___

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: why does this method return an id?

2011-12-12 Thread Matt Neuburg
On Sun, 11 Dec 2011 12:34:57 -0600, Charles Srstka  
said:
>On Dec 11, 2011, at 10:58 AM, Matt Neuburg wrote:
>
>> There seems to be a small hole in my understanding of Objective-C. I sort of 
>> understand why alloc-init returns an id, but why do so many class method 
>> convenience instantiators also return an id? For example:
>> 
>> [NSSortDescriptor sortDescriptorWithKey:@"indexOrig" ascending:YES]
>> 
>> That method is declared as returning an id, which means you can use it 
>> accidentally anywhere, assign the result to the wrong thing, and get a 
>> mysterious crash. (Guess how I know that?) Now, I think I know why [NSString 
>> string] is declared as returning an id - it's because it's a class cluster, 
>> right? But NSSortDescriptor isn't a class cluster; the result really is an 
>> NSSortDescriptor. So why isn't it *declared* as an NSSortDescriptor? Thx - m.
>
>Most likely it’s to accommodate subclasses. If it weren’t declared to return 
>an id, then doing something like this:
>
>MyFancySortDescriptorSubclass *sortDescriptor = [MyFancySortDescriptorSubclass 
>sortDescriptorWithKey:@“Foo” ascending:YES];
>
>would cause a compiler warning.

But if you subclassed NSSortDescriptor and didn't override 
sortDescriptorWithKey:ascending: and expected [MyFancyEtc. sortDescriptorEtc.] 
to magically produce a MyFancyEtc. instead of an NSSortDescriptor, you'd 
*deserve* that warning. In fact, having that warning would be *good*. Why are 
we turning type checking *off* at a crucial moment like this?

Also, if that's the right answer (i.e. if it's all about subclassing), then I 
don't get why *every* convenience constructor isn't typed as an id. Are the 
counterexamples all things that one is expected never to subclass?

m.

--
matt neuburg, phd = m...@tidbits.com, 
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook___

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: Why does my app suddenly return nil for the version string?

2011-12-12 Thread Matt Neuburg
On Sun, 11 Dec 2011 19:05:00 -0800, G S  said:
>Turns out there's an Xcode bug behind this.  Hard to imagine, I know.
>
>We don't use build numbers; just version numbers.  I noticed that the
>target summary's Version field was blank, but the Build field wasn't.
>Swapping those states led Xcode to inexplicably remove the version
>from the plist entirely.
>
>Screen shot:
>
>http://farm8.staticflickr.com/7005/6496731123_62ed9b4063_b.jpg

This is all made much more complicated by the fact that it's utterly unclear 
what Apple wants from these values. The documentation is about as coy and 
opaque as it gets (and that's pretty darned coy and opaque). My policy is to 
disbelieve everything everybody says on this topic and supply the same value 
for both fields and pray we get past the Guardians. m.

--
matt neuburg, phd = m...@tidbits.com, 
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook___

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