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,
> [[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
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):
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
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
>
>
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
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
__
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
[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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
___
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
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.
27 matches
Mail list logo