Re: File types...

2012-03-26 Thread Quincey Morris
On Mar 26, 2012, at 23:14 , Randy Widell wrote: > Now…everything goes wrong when I try to open a file. Opening the recently > saved document just gives the error: "The document '…' could not be opened. > My App cannot open files of this type." If I try to select the file in the > open panel,

Re: How to throttle rate of NSInputStream?

2012-03-26 Thread Dave Keck
> [[NSRunLoop currentRunLoop] runUntilDate:[NSDate date]]; Running the runloop recursively in the default mode is almost always a bad idea; doing so triggers callouts that parent stack frames almost certainly weren't designed to handle when they occur from within the method you're writing. It's ve

File types...

2012-03-26 Thread Randy Widell
OK, this is killing me…primarily because I have had this working in other applications and cannot find the difference between this current application and others where it works. I have an application that opens one file type, and I have the following document type declaration (anonymized):

Re: How to throttle rate of NSInputStream?

2012-03-26 Thread Glenn L. Austin
On Mar 26, 2012, at 4:13 PM, Jens Alfke wrote: > [I posted this to macnetworkprog earlier today, but 3 hours later it hasn’t > shown up yet, so I’m trying here too.] > > I’m using an async NSInputStream to read from a TCP socket. Given a good > connection, the data comes in faster than an iOS d

Re: Technology recommendations for animation/display

2012-03-26 Thread Kyle Sluder
On Mar 26, 2012, at 8:17 PM, Kenneth Baxter wrote: > Yes, that works if you are using pure CALayers - no problem there, but if you > are using layer backed views, it doesn't work - see e.g. > http://www.cocoabuilder.com/archive/cocoa/294950-problem-using-zposition-on-layer-backed-views.html > >

Re: Technology recommendations for animation/display

2012-03-26 Thread Kenneth Baxter
Yes, that works if you are using pure CALayers - no problem there, but if you are using layer backed views, it doesn't work - see e.g. http://www.cocoabuilder.com/archive/cocoa/294950-problem-using-zposition-on-layer-backed-views.html ...so it still looks as if layer backed views are out... Ke

Re: Technology recommendations for animation/display

2012-03-26 Thread Graham Cox
On 27/03/2012, at 12:54 PM, Kenneth Baxter wrote: > If there are any comments on these options, or suggestions for other > approaches, I'm all ears... CALayer has a 'zPosition' property which should allow you to set the order for sibling layers. --Graham __

Re: How to throttle rate of NSInputStream?

2012-03-26 Thread Jeff Kelley
It's always felt like a hack to me, but this will run the run loop for a short time and return: [[NSRunLoop currentRunLoop] runUntilDate:[NSDate date]]; Though in your case, if the first thing it does is process your input stream, that doesn't help. Jeff Kelley On Mar 26, 2012, at 7:13 PM, Je

How to throttle rate of NSInputStream?

2012-03-26 Thread Jens Alfke
[I posted this to macnetworkprog earlier today, but 3 hours later it hasn’t shown up yet, so I’m trying here too.] I’m using an async NSInputStream to read from a TCP socket. Given a good connection, the data comes in faster than an iOS device can parse it (it’s a stream of small JSON docs, one

Can't delete file on device

2012-03-26 Thread Rick Mann
I'm trying to delete some image files I cache. Here's what I'm getting: 2012-03-26 19:20:14.330 MyApp[5765:707] File exists: /var/mobile/Applications/6BBF21B1-97B3-4016-88B0-FE1C18D736D7/Library/Caches/Images/4149/5414582865_932fac9c82_b.jpg 2012-03-26 19:20:14.332 MyApp[5765:707] Unable to dele

Re: Technology recommendations for animation/display

2012-03-26 Thread Kenneth Baxter
OK, so it looks as if I have found the answer to whether I would be able to use layer backed views, and the answer is that even with layer backing turned on, you can not guarantee the drawing order of overlapping sibling views: http://stackoverflow.com/questions/466297/is-there-a-proper-way-to-

Re: Missing header files/folders?

2012-03-26 Thread Sean McBride
On Wed, 21 Mar 2012 09:15:28 -0700, Jens Alfke said: >If that's so, then how is a tool supposed to find the location of the >Developer folder? >Hardcoding /Applications/Xcode.app/Contents/Developer doesn't seem like >a good idea. In addition to xcode-select, you may be able to use URLForDirector

Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
On Mar 26, 2012, at 3:36 PM, Nick wrote: > Is there a way to disable this of filtering, to make the PDFView > subclass receive the -rightMouseDown event?.. Or what would be the > workaround (if it exists)?.. If you are targeting 10.6 or later you can install an event monitor (see the NSEvent cl

Re: Disable PDFView context menu

2012-03-26 Thread Nick
Is there a way to disable this of filtering, to make the PDFView subclass receive the -rightMouseDown event?.. Or what would be the workaround (if it exists)?.. > > AFAIK you shouldn't get a mouseDown call for a right click, only a left > click, but you can verify that with breakpoint. It is like

Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
On Mar 26, 2012, at 12:41 PM, Antonio Nunes wrote: > On 26 Mar 2012, at 19:09, Nick wrote: > >> However, I still can't receive -rightMouseDown message. I am returning >> "nil" in the method -(NSMenu*)menuForEvent, which disabled the context >> menu. >> But how can I process right-mouse-button cli

Re: Disable PDFView context menu

2012-03-26 Thread Nick
mouseDown is called for the left mouse button only. otherMouseDown - when the scrollwheel is clicked. The only problem is rightMouseDown which is not being invoked at all.. I was hoping there's some way to make PDFView receive this message.. Otherwise I will need to render the PDF page on a custom

Re: Disable PDFView context menu

2012-03-26 Thread Antonio Nunes
On 26 Mar 2012, at 19:09, Nick wrote: > However, I still can't receive -rightMouseDown message. I am returning > "nil" in the method -(NSMenu*)menuForEvent, which disabled the context > menu. > But how can I process right-mouse-button clicks?.. PDFView doesn't play very nice with clicks. If you a

Re: Disable PDFView context menu

2012-03-26 Thread Nick
However, I still can't receive -rightMouseDown message. I am returning "nil" in the method -(NSMenu*)menuForEvent, which disabled the context menu. But how can I process right-mouse-button clicks?.. 26 марта 2012 г. 21:03 пользователь Nick написал: > Thank you Keary. > That's what I needed > > 26

Re: Disable PDFView context menu

2012-03-26 Thread Nick
Thank you Keary. That's what I needed 26 марта 2012 г. 20:31 пользователь Keary Suska написал: > On Mar 26, 2012, at 11:04 AM, Nick wrote: > >> Hi. >> I am wondering, if it is possible to disable a context (popup) menu >> for a PDFView control? >> I have subclassed it, and overridden mouseDown an

Re: NSSplitView-like cursor "grabbing"

2012-03-26 Thread Markus Spoettl
On 3/26/12 7:40 PM, Kevin Perry wrote: It overrides -[NSView hitTest:] to return self for clicks inside the draggable region. Fantastic, thanks a lot! Works great! Regards Markus -- __ Markus Spoettl ___ Coco

Re: NSSplitView-like cursor "grabbing"

2012-03-26 Thread Kevin Perry
It overrides -[NSView hitTest:] to return self for clicks inside the draggable region. -KP On Mar 26, 2012, at 10:30 AM, Markus Spoettl wrote: > Hello all, > > does anyone know how to grab the cursor like NSSplitView does? It somehow > manages to know that the cursor is near a divider when

Re: ARC not ready for primetime?

2012-03-26 Thread davelist
If you want to be certain Apple see this, please file a bug report at http://bugreport.apple.com Dave On Mar 25, 2012, at 1:05 PM, Scott Andrew wrote: > I've uploaded a quick sample that shows what i have been seeing. I put some > NSLogs to show the deallocs for the NWColorViewController and

Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
On Mar 26, 2012, at 11:04 AM, Nick wrote: > Hi. > I am wondering, if it is possible to disable a context (popup) menu > for a PDFView control? > I have subclassed it, and overridden mouseDown and rightMouseDown. > I am receiving mouseDown event. But I do not receive rightMouseDown, I > am getting

NSSplitView-like cursor "grabbing"

2012-03-26 Thread Markus Spoettl
Hello all, does anyone know how to grab the cursor like NSSplitView does? It somehow manages to know that the cursor is near a divider when it actually is within a sub-view, it also "captures" clicks in those cases, even though they should strictly be sent to the sub-view the cursor is over.

Disable PDFView context menu

2012-03-26 Thread Nick
Hi. I am wondering, if it is possible to disable a context (popup) menu for a PDFView control? I have subclassed it, and overridden mouseDown and rightMouseDown. I am receiving mouseDown event. But I do not receive rightMouseDown, I am getting context menu displayed instead... Thank you ___

Re: Technology recommendations for animation/display

2012-03-26 Thread Kenneth Baxter
On Mar 24, 2012, at 06:54 PM, Evadne Wu wrote: Why not both. Create a common model and use Core Animation to back the on-screen view, but when you need to draw, tell the model objects to draw themselves using Quartz. -ev   I am considering this approach, and also re-looking at all the core ani

Blessed helper (SMJobBless) Process Name?

2012-03-26 Thread Prime Coderama
I created a blessed helper and when I view it in Activity Monitor, it does not contain a "Process Name". Can somebody please refer me to the appropriate documentation as I can not find it. Thanks, Coderama ___ Cocoa-dev mailing list (Cocoa-dev@lists.