Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:07 PM, Andy Lee wrote: > On Jan 7, 2013, at 2:10 AM, Martin Hewitson wrote: >> I've also checked that -setNeedsDisplay: is not being called on the PDFView. > > Could it be that setNeedsDisplay: isn't called but setNeedsDisplayInRect: is? I checked that as well. It's not

Re: Printing layer-based view

2013-01-07 Thread Kyle Sluder
On Mon, Jan 7, 2013, at 09:51 PM, Graham Cox wrote: > Hi all, > > How can I print a view whose content is solely based on CALayers? When I > attempt it, my view's -drawRect: method is called instead, which does not > render the layer-based content. You have to completely reimplement the parts of

Re: CATextLayer and vectors

2013-01-07 Thread Kyle Sluder
On Mon, Jan 7, 2013, at 09:38 PM, Graham Cox wrote: > Hi all, > > CATextLayer is a great convenience, but when zooming a layer-based view, > it gets blocky. Contrast CAShapeLayer, which renders in screen space and > so never gets blocky. > > Is there a way to get CATextLayer to do the same, or am

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:16 PM, Andy Lee wrote: > On Jan 7, 2013, at 12:07 PM, Andy Lee wrote: >> It does seem weird that drawPage: is getting called when you aren't even >> interacting with the PDFView. > > Come to think of it, this is *really* weird since your drawPage: checks > whether the P

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 09:07 PM, Andy Lee wrote: > On Jan 7, 2013, at 2:10 AM, Martin Hewitson wrote: >> I've also checked that -setNeedsDisplay: is not being called on the PDFView. > > Could it be that setNeedsDisplay: isn't called but setNeedsDisplayInRect: is? > > On Jan 7, 2013, at 2:48 AM, M

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-07 Thread Martin Hewitson
On Jan 7, 2013, at 08:44 PM, Mike Abdullah wrote: > > On 7 Jan 2013, at 16:35, Martin Hewitson wrote: > >> Hi Francisco, >> >> Thanks for the feedback! >> >> What you suggest sounds like it might fix the problem, but I'm wondering how >> best to do this. Currently I'm just calling -remove:

Printing layer-based view

2013-01-07 Thread Graham Cox
Hi all, How can I print a view whose content is solely based on CALayers? When I attempt it, my view's -drawRect: method is called instead, which does not render the layer-based content. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

CATextLayer and vectors

2013-01-07 Thread Graham Cox
Hi all, CATextLayer is a great convenience, but when zooming a layer-based view, it gets blocky. Contrast CAShapeLayer, which renders in screen space and so never gets blocky. Is there a way to get CATextLayer to do the same, or am I forced to roll my own solution? --Graham __

Re: Floating-point differences between ARM processors

2013-01-07 Thread Rick Mann
On Jan 7, 2013, at 17:43 , Jean Suisse wrote: > That wasn't clear (at least for me) in your original message. It is also a > key point. In that case, you indeed don't need accuracy. Why not go for one > of Vincent Habchi's solutions then ? That could give you more control over > the results.

Re: Floating-point differences between ARM processors

2013-01-07 Thread Jean Suisse
On 8 janv. 2013, at 00:24, Rick Mann wrote: > > On Jan 7, 2013, at 11:22 , Greg Parker wrote: > >> Note also that physics simulations will always need to be careful with the >> error inherent to finite precision floating-point arithmetic. IEEE >> specification of exact results for every opera

Re: Full-time position for experienced Mac app developer in San Diego, CA

2013-01-07 Thread Matt Neuburg
On Jan 7, 2013, at 1:40 PM, cocoa-dev-requ...@lists.apple.com wrote: > Message: 10 > Date: Mon, 07 Jan 2013 22:09:24 +0100 > From: Kévin Vavelin > To: John chen > Cc: Cocoa-dev@lists.apple.com > Subject: Re: Full-time position for experienced Mac app developer in > San Diego, CA > Me

Re: Floating-point differences between ARM processors

2013-01-07 Thread Rick Mann
On Jan 7, 2013, at 11:22 , Greg Parker wrote: > Note also that physics simulations will always need to be careful with the > error inherent to finite precision floating-point arithmetic. IEEE > specification of exact results for every operation wouldn't solve that. We don't care so much about

Re: drawing outside your view when elasticity is elasticizing

2013-01-07 Thread Kyle Sluder
On Mon, Jan 7, 2013, at 09:38 AM, Steve Mills wrote: > What's the correct way to handle drawing our custom view that's in an > NSScrollView when the scroll view is being pulled past the min/max of the > scrollable area and the elasticity goes into effect, showing areas that > are outside our view's

Re: NSData, NSImageView value binding, and NSUnarchiveFromData - nothing appears

2013-01-07 Thread Quincey Morris
On Jan 5, 2013, at 18:39, Matt DeLuco wrote: > When I started building my app I had been using NSImageView's Data binding to > display image data in an NSData object, which is apparently deprecated. > > I read that a data transformer has to be used when using the NSImageView's > Value binding.

Inserting Custom Data Into PowerPoint File

2013-01-07 Thread Ian was here
I am attempting to insert custom data into a PowerPoint slide. This data would be stored in the .ppt file. I am using the ScriptingBridge framework in order to write AppleScript code as Objective-C. Has anyone done this before? I know there is a way to do this using VBA, but would like to avoid

Re: simulating in a text field by pressing a button

2013-01-07 Thread jonat...@mugginsoft.com
On 2 Jan 2013, at 21:03, Joel Reymont wrote: > I have a dialog (sheet) with a single text field and a button. > > I'm using Cocoa Bindings to validate the value in the text field and > set a string field in the File's Owner. > > This works fine but I would like to trigger the same sequence of

Re: Full-time position for experienced Mac app developer in San Diego, CA

2013-01-07 Thread Kévin Vavelin
I'm interested but I'm based in France. Can you tell me more about the job ? Vavelin Kévin Twitter | Blog | LinkedIn Entrepreneur Developer OS X / iOS ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera

drawing outside your view when elasticity is elasticizing

2013-01-07 Thread Steve Mills
What's the correct way to handle drawing our custom view that's in an NSScrollView when the scroll view is being pulled past the min/max of the scrollable area and the elasticity goes into effect, showing areas that are outside our view's bounds? -- Steve Mills office: 952-818-3871 home: 952-40

Re: Cocoa-dev Digest, Vol 10, Issue 12

2013-01-07 Thread Francisco Garza
> I have an app which presents folders and files in a tree structure. I'm using > an NSTreeController and core data to keep track of the relationships between > the files and folders. The ProjectItem entity has a 'children' relationship > which is to-many with the same entity and a 'parent' rela

NSData, NSImageView value binding, and NSUnarchiveFromData - nothing appears

2013-01-07 Thread Matt DeLuco
When I started building my app I had been using NSImageView's Data binding to display image data in an NSData object, which is apparently deprecated. I read that a data transformer has to be used when using the NSImageView's Value binding. After digging around I realized that there's an NSUnar

simulating in a text field by pressing a button

2013-01-07 Thread Joel Reymont
I have a dialog (sheet) with a single text field and a button. I'm using Cocoa Bindings to validate the value in the text field and set a string field in the File's Owner. This works fine but I would like to trigger the same sequence of events when pressing the button. How do I do this? Than

Full-time position for experienced Mac app developer in San Diego, CA

2013-01-07 Thread John chen
A well known company in San Diego, CA is looking for experienced Mac app developer. If you're interested, please email me your resume. No recruiters please. Thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

UIResponder differences from iOS4->iOS5

2013-01-07 Thread Jon Brooks
I found a curious difference in behavior running my app on an iOS4 device vs. running the same app on an iOS5 device. On iOS4, if I set a view (or really just a UIResponder) to be firstResponder, and then later, resignFirstResponder, there is no defined firstResponder; whatever was firstRespond

Re: Floating-point differences between ARM processors

2013-01-07 Thread vincent habchi
On 7 janv. 2013, at 20:22, Greg Parker wrote: > IEEE 754 guarantees exact results for + - * / sqrt. Everything else is > implementation-defined. That’s why I suggested a mixed approach combining exact table lookup and a refinement via only multiplications and divisions. It should give, if not

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Andy Lee
On Jan 7, 2013, at 12:07 PM, Andy Lee wrote: > It does seem weird that drawPage: is getting called when you aren't even > interacting with the PDFView. Come to think of it, this is *really* weird since your drawPage: checks whether the PDFView is first responder -- which it can't be if you're i

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Andy Lee
On Jan 7, 2013, at 2:10 AM, Martin Hewitson wrote: > I've also checked that -setNeedsDisplay: is not being called on the PDFView. Could it be that setNeedsDisplay: isn't called but setNeedsDisplayInRect: is? On Jan 7, 2013, at 2:48 AM, Martin Hewitson wrote: > Actually, at the risk of having a

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-07 Thread Mike Abdullah
On 7 Jan 2013, at 16:35, Martin Hewitson wrote: > Hi Francisco, > > Thanks for the feedback! > > What you suggest sounds like it might fix the problem, but I'm wondering how > best to do this. Currently I'm just calling -remove: on the tree controller > to delete the selected object(s). Of c

Re: Floating-point differences between ARM processors

2013-01-07 Thread Greg Parker
On Jan 5, 2013, at 12:02 AM, Rick Mann wrote: > Postings online suggest this is by design, in that it was more important to > get "close" results faster. Unfortunately, in something like a physic > simulation, the error adds up quickly. I think correct is more important than > fast, and am rath

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
On 7, Jan, 2013, at 05:52 PM, Kyle Sluder wrote: > On Jan 7, 2013, at 2:48 AM, Martin Hewitson > wrote: > >> Actually, at the risk of having a conversation with myself, I've narrowed >> the issue down to the actions I'm taking within my override of -drawPage:. >> Essentially what I'm aiming

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Kyle Sluder
On Jan 7, 2013, at 2:48 AM, Martin Hewitson wrote: > Actually, at the risk of having a conversation with myself, I've narrowed the > issue down to the actions I'm taking within my override of -drawPage:. > Essentially what I'm aiming at is having a focus ring on the PDFView. I do > this in my

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-07 Thread Martin Hewitson
Hi Francisco, Thanks for the feedback! What you suggest sounds like it might fix the problem, but I'm wondering how best to do this. Currently I'm just calling -remove: on the tree controller to delete the selected object(s). Of course, if I clear the selection first, then -remove: doesn't do

Re: PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
Actually, at the risk of having a conversation with myself, I've narrowed the issue down to the actions I'm taking within my override of -drawPage:. Essentially what I'm aiming at is having a focus ring on the PDFView. I do this in my PDFView subclass: - (void)drawPage:(PDFPage *)page { [supe

PDFView drawPage called often after selecting text

2013-01-07 Thread Martin Hewitson
Dear list, I have an app which has a main split view. In the left panel there is a text editor (NSTextView), in the right panel there is a PDFView. I find that when typing in the text view, the -drawPage: method of the PDFView is called about once every 200ms but only if the PDFView is displayi