Re: -mouseDragged: sent to view when dragging window

2012-07-25 Thread Markus Spoettl
On 7/24/12 11:29 PM, Quincey Morris wrote: My view reacts to -mouseDragged: but doesn't check if there's been a -mouseDown: first because that's implicit. Did that change? The Cocoa Event Handling Guide says "Mouse events are dispatched by an NSWindow object to the NSView object over which the

Re: -mouseDragged: sent to view when dragging window

2012-07-25 Thread Graham Cox
On 25/07/2012, at 5:19 PM, Markus Spoettl wrote: > I don't believe that getting -mouseDragged: without a prior -mouseDown: or > following -mouseUp: is intentional. I tend to agree, but I have also observed the issue you're having as well. Basically, if you didn't get a mouseDown:, you should

PDF Rendering on iPad's

2012-07-25 Thread Dave
Hi All, I have a few questions about rendering PDFs and wondered if anyone here could help. I've inherited some code that tiles the PDF, I think this code was based on one of the Apple Sample Apps from a while back. I'm rendering a PDF on an iPad, it's a magazine with lots of text and o

RE: PDF Rendering on iPad's

2012-07-25 Thread Julius Oklamcak
Dave, > I have a few questions about rendering PDFs and wondered if > anyone here could help. In my open source iOS PDF viewer (https://github.com/vfr/Reader) I employ two techniques: 1) Show a low resolution image of the page below the CATiledLayer-based zoom-able page view. These low resolutio

When does NSInputStream's -getBuffer:length: actually work?

2012-07-25 Thread Jens Alfke
NSInputStream has a -getBuffer:length: method that lets you get the available data from the stream without copying. This is great for performance, and I've written my client code to take advantage of it if it's supported, but every time I've tested, it isn't supported (i.e. just returns NO) so m

What's the build number of 10.8?

2012-07-25 Thread Jens Alfke
I have the developer GM seed of 10.8 from a few weeks ago. What's the build number* of the version that shipped? Is it the same, or do I need to upgrade? —Jens * In the About This Mac panel, click where it says "Version 10.8" and you'll see the build number.

Re: What's the build number of 10.8?

2012-07-25 Thread Shane Zatezalo
It was the same when I checked, 12A269. Shane On Jul 25, 2012, at 1:18 PM, Jens Alfke wrote: > I have the developer GM seed of 10.8 from a few weeks ago. What's the build > number* of the version that shipped? Is it the same, or do I need to upgrade? > > —Jens > > * In the About This Mac pa

Re: What's the build number of 10.8?

2012-07-25 Thread Lee Ann Rucker
I just got email that says The final version of OS X Mountain Lion 10.8 was released today! Your 12A269 redemption code actually purchased the final version for you! The last build we seeded, 12A269, is identical to the build that is being sold in the Mac App Store today. - Original Mes

Re: What's the build number of 10.8?

2012-07-25 Thread Andy Lee
12A269 --Andy On Jul 25, 2012, at 1:18 PM, Jens Alfke wrote: > I have the developer GM seed of 10.8 from a few weeks ago. What's the build > number* of the version that shipped? Is it the same, or do I need to upgrade? > > —Jens > > * In the About This Mac panel, click where it says "Version

Re: When does NSInputStream's -getBuffer:length: actually work?

2012-07-25 Thread Thomas Davie
On 25 Jul 2012, at 18:08, Jens Alfke wrote: > NSInputStream has a -getBuffer:length: method that lets you get the available > data from the stream without copying. This is great for performance, and I've > written my client code to take advantage of it if it's supported, but every > time I've

Re: When does NSInputStream's -getBuffer:length: actually work?

2012-07-25 Thread Wim Lewis
On 25 Jul 2012, at 10:08 AM, Jens Alfke wrote: > NSInputStream has a -getBuffer:length: method that lets you get the available > data from the stream without copying. This is great for performance, and I've > written my client code to take advantage of it if it's supported, but every > time I'v

Re: Forcing Core Data to save attribute changed behind its back?

2012-07-25 Thread Sean McBride
On Tue, 24 Jul 2012 14:04:12 -0700, Quincey Morris said: >I believe the answer is that you're Doing It Wrong™. :) I know. :) I only do it in one place, and only because the attribute is a few hundred MB, which I don't want to be copying all the time. (The official Core Data recommendations for

Re: Forcing Core Data to save attribute changed behind its back?

2012-07-25 Thread Kyle Sluder
On Wed, Jul 25, 2012, at 03:54 PM, Sean McBride wrote: > On Tue, 24 Jul 2012 14:04:12 -0700, Quincey Morris said: > >Another way of saying all this is that it may not be possible to > >(reliably) inform Core Data that an attribute has changed without > >changing the identity of the object that repr

spotlight importer extract file from zip archive

2012-07-25 Thread Gideon King
Hi, I am trying to create a spotlight importer, but my files that I want to index are zip files, and NSTask will not run from the mdimporter process, since it is not blocked by the sandbox. How can I get files from my zipped documents without having to run an NSTask? Thanks Gideon _

Re: spotlight importer extract file from zip archive

2012-07-25 Thread Jens Alfke
On Jul 25, 2012, at 6:57 PM, Gideon King wrote: > How can I get files from my zipped documents without having to run an NSTask? Link against libz.dylib? —Jens smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-d

Mission Control Hiding Window

2012-07-25 Thread Trygve Inda
I have a window that is the size of the display and has a z-order to put it between the desktop picture and icons. I call: setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces | NSWindowCollectionBehaviorTransient | NSWindowCollectionBehaviorIgnoresCycle This lets it move betwen space

Re: spotlight importer extract file from zip archive

2012-07-25 Thread Gideon King
Cool, got it working thanks. Gideon On 26/07/2012, at 12:46 PM, Jens Alfke wrote: > > On Jul 25, 2012, at 6:57 PM, Gideon King wrote: > >> How can I get files from my zipped documents without having to run an NSTask? > > Link against libz.dylib? > > —Jens _