Trouble with code signing and app store submission

2012-03-28 Thread Martin Hewitson
Dear list, I'm having trouble submitting an app update to the Mac App Store. I'm not sure if this is an Xcode issue or something else, so I thought I'd try here first. I've updated this app many times using the same computer. This time I get the error in the organiser on the page entitled "Choo

Re: Segmented Control Appearance

2012-03-28 Thread Andreas Mayer
Am 29.03.2012 um 02:52 schrieb David Delmonte: > Terminating app due to uncaught exception 'NSInvalidArgumentException', > reason: '-[_UIAppearance setTitleTextAttributes:]: unrecognized selector sent > to instance 0x7c957d20' > > > I would appreciate any help in understanding what I'm doing

recreating lion fullscreen icon style

2012-03-28 Thread Rick C.
Hi, I'm working on a project where I might put icons in the top-right toolbar kinda like the fullscreen icon for lion or like the Mail icons in this window where I'm typing right now. My question would be what is the best way to put them there? I know how to get them to appear in the window f

Re: Can't delete file on device

2012-03-28 Thread Charles Srstka
On Mar 28, 2012, at 7:21 PM, Jens Alfke wrote: > On Mar 27, 2012, at 1:50 PM, Rick Mann wrote: > >> if ([fm fileExistsAtPath: url.absoluteString]) > > This line seems wrong. It should be using the .path property instead of > .absoluteString. Or better yet, just use the (unfortunately verbos

Segmented Control Appearance

2012-03-28 Thread David Delmonte
I'm building an app for iOS 5.x and am trying to use the new UIAppearance capability. I want to style a UISegmented Control title as follows: UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems:segments]; segmentedControl.segmentedControlStyle =

Re: Getting the best frame rate for NSView drawing

2012-03-28 Thread Kenneth Baxter
Thanks Graham, Yes, fully aware that CGLayer and CALayer are completely different. Interesting to hear about the z position needing to be a large number - will keep that in mind. Cool visualizer. I'm going to have another go at a test project and see if I can work around the issues and do it

Re: Can't delete file on device

2012-03-28 Thread Rick Mann
On Mar 28, 2012, at 17:21 , Jens Alfke wrote: > > On Mar 27, 2012, at 1:50 PM, Rick Mann wrote: > >>if ([fm fileExistsAtPath: url.absoluteString]) > > This line seems wrong. It should be using the .path property instead of > .absoluteString. The latter is the entire URL, including the sch

Re: Can't delete file on device

2012-03-28 Thread Jens Alfke
On Mar 27, 2012, at 1:50 PM, Rick Mann wrote: >if ([fm fileExistsAtPath: url.absoluteString]) This line seems wrong. It should be using the .path property instead of .absoluteString. The latter is the entire URL, including the scheme and the colon, which is not going to be a real filesyste

Re: How to throttle rate of NSInputStream?

2012-03-28 Thread Jens Alfke
At 8:52 AM +0100 3/27/12, Quinn \"The Eskimo!\" wrote: > On 26 Mar 2012, at 21:28, Jens Alfke wrote: > >> What can I do about this? Ideally I'd like the stream to hold off on reading >> more from the socket until my code finishes processing the buffer.. > > If you don't call -read:maxLength:, t

Re: Getting the best frame rate for NSView drawing

2012-03-28 Thread Graham Cox
On 28/03/2012, at 11:45 PM, Kenneth Baxter wrote: > The contents of about half the layers seldom change, so from that > perspective, caching contents as either NSImages, CIImages, CGLayers or using > CALayers would seem to be a good idea. The other half of the layers are > simple, and just con

Re: NSTextFinder: endless loops asking for string at index that doesn't exist.

2012-03-28 Thread Kevin Perry
Eric, It's possible that NSTextFinder has a bug, in which case you should file a Radar with a sample app that reproduces the problem. Having that information, it may be possible to identify a workaround. However, first tell me—are you setting the endsWithSearchBoundary parameter to YES for the

NSTextFinder: endless loops asking for string at index that doesn't exist.

2012-03-28 Thread Eric Slosser
I'm using the NSTextFinder API with the stringAtIndex:len:effectiveRange: style of exposing the text. I have a test case which has 4 strings in it, "foo1" .. "foo4". I show the findbar, type 'foo', and click the 'find next' control. Here are the calls that my client receives and the results be

Can't receive a scrollWheel message in a PDFView subclass

2012-03-28 Thread Nick
Hello Sorry for flooding the list with basic questions, but I really don't have a big experience with the Cocoa development. I am delving currently into PDFKit for Mac, trying to display a PDF document on a window. I also would like to change default behavior of this control (this is a customized

Re: Best Way to Append Bytes With Encoding To CFMutableString

2012-03-28 Thread Jean-Daniel Dupas
Le 28 mars 2012 à 20:00, Charles Srstka a écrit : > On Mar 28, 2012, at 9:55 AM, jonat...@mugginsoft.com wrote: > >> On 28 Mar 2012, at 15:35, Andreas Grosam wrote: >> >>> >>> On Mar 28, 2012, at 3:58 PM, jonat...@mugginsoft.com wrote: > I presume that you considered CFStringAppendCS

Re: Best Way to Append Bytes With Encoding To CFMutableString

2012-03-28 Thread Greg Parker
On Mar 28, 2012, at 11:00 AM, Charles Srstka wrote: > Unicode NULL is the least of your problems. In UTF16, each character in the > normal ASCII range is going to contain a zero as one of its two bytes (which > one, of course, depending on whether the encoding is big- or little-endian). > CFStr

NSOutlineView View Based and editing

2012-03-28 Thread Daniele Margutti
Hi guys, I'm working with the new NSOutlineView View based control. I've created my own NSTableCellView subclass where I've place some controls, one of them is an NSTextField. Now I would to implement a simple cell editing as like in the old cell-based table. So I've set a datasource and a deleg

Re: Best Way to Append Bytes With Encoding To CFMutableString

2012-03-28 Thread Charles Srstka
On Mar 28, 2012, at 9:55 AM, jonat...@mugginsoft.com wrote: > On 28 Mar 2012, at 15:35, Andreas Grosam wrote: > >> >> On Mar 28, 2012, at 3:58 PM, jonat...@mugginsoft.com wrote: >>> I presume that you considered CFStringAppendCString(): >>> >>> void CFStringAppendCString ( >>> CFMutableSt

Re: Adding a background image to the GLPaint sample

2012-03-28 Thread David Duncan
GLPaint is a really old sample, and appears to have not been updated to use a UIViewController subclass to manage its view, and as such will elicit this warning because the window's rootViewController property will not have been set. I would recommend you look at a more recent sample, or even at

Re: Adding a background image to the GLPaint sample

2012-03-28 Thread David Duncan
On Mar 28, 2012, at 6:22 AM, David Delmonte wrote: > Hi, I'm trying to do the above. I've added a simple UIButton at the > AppDelegate level (as there is no ViewController). > > When the button is tapped: > > - (IBAction)pictureButtonTapped:(id)sender { > NSLog(@"%s", __FUNCTION__); >

Unable to pass NSString as argument in NSButton binding

2012-03-28 Thread Devarshi Kulshreshtha
Hi All, I am trying to perform an action on a button using bindings, so I declared and defined following method in my app-controller class: - (void)selectFolderAtPath:(NSString *)path; And I did following bindings on button in IB: Argument: Bind to: App Delegate Model Key Path:

Re: How to use NSArchiver with ARC?

2012-03-28 Thread Gerriet M. Denkmann
On 28 Mar 2012, at 21:49, Roland King wrote: > What's the error message? "ARC does complain" doesn't quite say. Uhhh... Sorry. Was a simple Typo which I discovered while trying to recreate the error message. Sorry for the noise. Gerriet. ___ Co

Re: Best Way to Append Bytes With Encoding To CFMutableString

2012-03-28 Thread jonat...@mugginsoft.com
On 28 Mar 2012, at 15:35, Andreas Grosam wrote: > > On Mar 28, 2012, at 3:58 PM, jonat...@mugginsoft.com wrote: >>> >> I presume that you considered CFStringAppendCString(): >> >> void CFStringAppendCString ( >> CFMutableStringRef theString, >> const char *cStr, >> CFStringEncoding encoding

Re: How to use NSArchiver with ARC?

2012-03-28 Thread Roland King
What's the error message? "ARC does complain" doesn't quite say. On 28 Mar, 2012, at 22:34, "Gerriet M. Denkmann" wrote: > > - (void)encodeWithCoder:(NSCoder *)coder > { >if ( [coder allowsKeyedCoding] ) >{ >[ coder encodeObject: self.name forKey: @"Name" ]; >} >else

Re: Getting the best frame rate for NSView drawing

2012-03-28 Thread Per Bull Holmen
Hi Ken, I'm sorry that I can't give you a great answer to your questions, I can only tell you what I do myself when I need high animation performance: I use OpenGL, even for 2D. I have wondered whether some of the more high level technologies are more suited, but judging from game programming web

Re: Best Way to Append Bytes With Encoding To CFMutableString

2012-03-28 Thread Andreas Grosam
On Mar 28, 2012, at 3:58 PM, jonat...@mugginsoft.com wrote: > > On 28 Mar 2012, at 14:35, Andreas Grosam wrote: > >> What's the preferred method to append a sequence of bytes in encoding >> 'encoding' (a CFStringEncoding) to a CFMutableString object? >> >> Well, the set of encodings which I'm

How to use NSArchiver with ARC?

2012-03-28 Thread Gerriet M. Denkmann
- (void)encodeWithCoder:(NSCoder *)coder { if ( [coder allowsKeyedCoding] ) { [ coder encodeObject: self.name forKey: @"Name" ]; } else { [ coder encodeObject: self.name ]; <--- ARC does complain } } So: what to

Re: PDFKit: panning the zoomed in PDF document

2012-03-28 Thread Nick
10.6 and newer. Not sure about gestures. Preview.app works fine on 10.6... Just try to click "move" button in the toolbar and drag the PDF document... > Well, you could detect a pinch too for resizing.  Is this only for 10.7 and > also how will you handle things if gestures is disabled? > > On M

Re: Best Way to Append Bytes With Encoding To CFMutableString

2012-03-28 Thread jonat...@mugginsoft.com
On 28 Mar 2012, at 14:35, Andreas Grosam wrote: > What's the preferred method to append a sequence of bytes in encoding > 'encoding' (a CFStringEncoding) to a CFMutableString object? > > Well, the set of encodings which I'm interested in are the Unicode encoding > schemes (UTF-8, UTF-16, UTF-

Best Way to Append Bytes With Encoding To CFMutableString

2012-03-28 Thread Andreas Grosam
What's the preferred method to append a sequence of bytes in encoding 'encoding' (a CFStringEncoding) to a CFMutableString object? Well, the set of encodings which I'm interested in are the Unicode encoding schemes (UTF-8, UTF-16, UTF-16LE, UTF-16BE, etc) Unfortunately, there is no CFStringApp

Adding a background image to the GLPaint sample

2012-03-28 Thread David Delmonte
Hi, I'm trying to do the above. I've added a simple UIButton at the AppDelegate level (as there is no ViewController). When the button is tapped: - (IBAction)pictureButtonTapped:(id)sender { NSLog(@"%s", __FUNCTION__); drawingView.backgroundColor = [UIColor colorWithPatternImage:

Re: Getting the best frame rate for NSView drawing

2012-03-28 Thread Kenneth Baxter
Thanks for taking the time to put together these replies Graham and Uli.  Yes, I know it's a heavy load in my test case, but it is something that could happen from time to time in the real application. The contents of about half the layers seldom change, so from that perspective, caching conte

Re: PDFKit: panning the zoomed in PDF document

2012-03-28 Thread Alex Zavatone
Well, you could detect a pinch too for resizing. Is this only for 10.7 and also how will you handle things if gestures is disabled? On Mar 28, 2012, at 8:15 AM, Nick wrote: > This is for Mac OS. > The functionality - similar to the Preview.app > When the user zooms in the page, and the whole pa

Re: PDFKit: panning the zoomed in PDF document

2012-03-28 Thread Nick
This is for Mac OS. The functionality - similar to the Preview.app When the user zooms in the page, and the whole page does not fit into the view, the user can pan the page to be able to browse the parts of the page that otherwise can be seen only by using scrollbars (and the latter is very inconve

Re: PDFKit: panning the zoomed in PDF document

2012-03-28 Thread Alex Zavatone
Depends on what you are trying to do. What's the total functionality you're going for? And is this for iOS or the Mac? On Mar 28, 2012, at 8:01 AM, Nick wrote: > Hello, > > I am trying to figure out how to "pan" a pdf page displayed in a > PDFView. Should I do this on my own (by intercepting

PDFKit: panning the zoomed in PDF document

2012-03-28 Thread Nick
Hello, I am trying to figure out how to "pan" a pdf page displayed in a PDFView. Should I do this on my own (by intercepting mouseDragged and setting scroll position of the surrounding NSScrollView)? I couldn't find the method for setting this "panning mode" in PDFView class (by default, a selecti

Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions

2012-03-28 Thread Ray
I don't think so (not sure what your question was, possibly it was in another thread?) On Mar 27, 2012, at 9:31 PM, b.n...@bluewin.ch wrote: > sorry, is that the answer of my question? > > benedikt > > > > > > Ursprüngliche Nachricht > Von: cocoa-dev@deployedsmarts. > com > Datum:

Re: Getting the best frame rate for NSView drawing

2012-03-28 Thread Uli Kusterer
On 28/03/2012, at 6:36 PM, Kenneth Baxter wrote: > I am trying out some different ideas for animating portions of a view, but am > having problems with performance. On current hardware, the main bottlenecks in the drawing pipeline are two spots: 1) The CPU, i.e. drawing stuff using Quartz calls

Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions

2012-03-28 Thread Ray
On Mar 27, 2012, at 7:29 PM, David Duncan wrote: > Simplest solution is to save the scale along side the image itself (under the > assumption that this data can possibly end up on a non-retina device for some > reason) or to create a new UIImage with the screen scale via > +imageWIthCGImage:sc

Re: Getting the best frame rate for NSView drawing

2012-03-28 Thread Graham Cox
On 28/03/2012, at 6:36 PM, Kenneth Baxter wrote: > I am trying out some different ideas for animating portions of a view, but am > having problems with performance. > > Essentially I have an animation running using a CABasicAnimation, and when it > calls back to my view, it invalidates the re

Re: Example implementation of NSAnimatablePropertyContainer?

2012-03-28 Thread Kenneth Baxter
I tried this, and it worked fine on 10.7, however I have a couple of things I am animating - an opacity float value, and an NSRect. Both animate fine on 10.7, but on 10.6, the NSRect (or CGRect - I've tried both) doen't get animated - it just goes to its final value. I have looked through the

Getting the best frame rate for NSView drawing

2012-03-28 Thread Kenneth Baxter
I am trying out some different ideas for animating portions of a view, but am having problems with performance.  Essentially I have an animation running using a CABasicAnimation, and when it calls back to my view, it invalidates the rect where the object was drawn, and the new place where it i