I'm implementing drag and drop in an outline view.
I implement –outlineView:validateDrop:proposedItem:proposedChildIndex: to
return one of several drag operation constants depending on combinations of
source, destination and the source mask. For example the operation can be a
move or a copy
What about a category on NSPasteboard that uses an associated object to store
stuff in the NSDraggingInfo?
Dave
Sent from my iPhone
On Jun 10, 2010, at 12:12 AM, Graham Cox graham@bigpond.com wrote:
I'm implementing drag and drop in an outline view.
I implement
Hello all
Well I have created custom table view cells in the way that I create my
subclass of NSCell, and then in the -(void)drawWithFrame:(NSRect)cellFrame
inView:(NSView *)controlView method I make the drawing.
now i wonder if I can do it the iPHone way, create a xib with a NSCell view,
On 9 Jun 2010, at 21:11, Eric E. Dolecki wrote:
I have a view that contains text in it. I am scaling it up and down... When
at 100% the text is nice and crisp. When scaled, it's blurry (the default
state for the view).
How can I fix that? Would I need to set the text again at a specific
On 10 Jun 2010, at 08:37, Gustavo Pizano wrote:
Well I have created custom table view cells in the way that I create my
subclass of NSCell, and then in the -(void)drawWithFrame:(NSRect)cellFrame
inView:(NSView *)controlView method I make the drawing.
now i wonder if I can do it the
Dear Cocoa users,
I'm trying to implement view switching based on the view switching example
in Hillegass. I have a main window with a box that contains other views.
The following method, in the view controller class for the main window,
switches the views contained in the box and resizes the
Alastair Hi.
Yes, sorry I didn't think properly when typing, NSCell is not a view, and
unfortunately Cocoa doesn't offer the option as UIKit to drag in IB a
(NSTableCell), and just put all the controls there, then set the Identifier
to reuse, configure the cell and return the cell, in the
Very good idea, but they are indeed the same:
2010-06-10 19:56:47.036 Redacted[4259:a0f] filter:{CIUnsharpMask {
inputImage = null;
inputIntensity = 0.1;
inputRadius = 0.2;
}} ii:0.1 ir:0.2 pointer:0x2000f84e0
2010-06-10 19:56:47.040 Redacted[4259:a0f] An uncaught exception was raised
On Jun 10, 2010, at 02:28, Alec Stewart wrote:
1. The main window and the box resize to fit the view I am swapping in but
after the resizing is complete, the box is empty and none of the UI elements
(e.g label, progress bar, etc...) contained in the new view are visible.
2. The routine I
On 10 Jun 2010, at 10:49, Gustavo Pizano wrote:
Yes, sorry I didn't think properly when typing, NSCell is not a view, and
unfortunately Cocoa doesn't offer the option as UIKit to drag in IB a
(NSTableCell), and just put all the controls there, then set the Identifier
to reuse, configure
Hello all.. I have a StatusItem on the StatusBar, and when the app its doing
something Im placing a NSProgressIndicator SpinnerStyle as the view of the
StatusItem.
On 10.6 it shows normal, but on 10.5 when I replace the image of the StatusItem
for the progress indicator view, then I see a
On May 18, 2010, at 10:20 AM, Michael Diehr wrote:
On May 17, 2010, at 6:26 PM, Michael Diehr wrote:
Update: it appears as if instantiating a dummy NSOpenGLView in my master
process helps the issue.
I'm not clear whether I actually need to go so far as to create the
NSOpenGLView and
Text will scale just fine by changing the view's bounds (or the transform)
if you are NOT using a layer-backed view. I had to abandon this approach on
the iPad because everything is layer-backed and it just scales pixels.
On 6/10/10 4:04 AM, cocoa-dev-requ...@lists.apple.com
There are many, many questions and articles and discussions out there
about tracking down memory leaks, and finding over-release bugs.
Neither of those, AFAICT, is what's happening to me. If there's a good
article or Fine Manual out there that I should read, I haven't found
it.
In my iPhone app,
Thanks, Graham. I don't want to use NSFileManager because (AFAICT)
you can't ask it how far along it's gotten. Also I don't see a way to
cancel a copy in the middle.
I'm not familiar with these ops, but having browsed the docs just
now, it seems to me what's happening is that because
I’m trying to do something pretty simple (or so I would think). I need
to get an `NSFont` (to apply to portion of an
`NSMutableAttributedString`) from an OpenType file in the Resources
folder of my bundle.
First, I grab an `NSURL`:
NSURL *fontURL = [NSURL fileURLWithPath: [[self bundle]
OK I'm really stumped on this one. I want to make a checkbox with a
NSTextFieldCell combined together. It's important that the checkbox
goes ON if the mouse hits the box, NOT the text. I've accomplished
this, more or less, but the issue is receiving the mouse event because
I click one checkbox in
Hi, I have an offscreen view that I want to get the PDF data from. I use the
dataWithPDFInsideRect method, but I have found that this creates an
NSPrintOperation. This is a problem because I want to print using different
settings for this view only when a *real* print operation is happening. I
On Jun 10, 2010, at 9:00 AM, Sixten Otto wrote:
It seems like what's happening is that there's some object someplace
that's holding an unretained pointer to my entity, and trying to use
it after it's gone. But the stack trace doesn't tell me much of
anything (and I confess that I really don't
On Jun 9, 2010, at 11:34 PM, Jerry Krinock wrote:
On 2010 Jun 09, at 19:02, Andy Lee wrote:
Sorry for a vague question, but... a while back there was a discussion of (I
*think*) NSNotificationCenter.
You may be thinking of Mike Ash's MAKVONotificationCenter. However, this is
a
On Jun 9, 2010, at 11:12 PM, Graham Cox wrote:
In –outlineView:acceptDrop:item:childIndex: I can work out much the same set
of conditions as above and mostly do the right thing, but since a move or a
copy is equally likely, I need a way to determine what the last drag
operation returned
On Jun 10, 2010, at 11:02, Andy Lee wrote:
There was a whole thread about it and someone said they'd written a
replacement class and it seemed to work and they were pretty happy with it
because it gave them a greater ability to debug, I think, and they posted a
link.
Are you sure you
On Thu, Jun 10, 2010 at 1:41 PM, Greg Parker gpar...@apple.com wrote:
If you suspect a use-after-free bug somewhere, and NSZombie doesn't find it,
then try this:
1. Verify that NSZombie is operating. Add `NSMutableString alloc] init]
release] release]` to your code. Make sure NSZombie
Kevin Boyce wrote:
Sure, it seems like it's just another dispatch from the runloop.
Which would be fine if it copied like 100K bytes per invocation, or
something like that. It seems instead to run off and copy vast
quantities of data before returning. Copying a 4MB MP3 file
actually
On Thursday, June 10, 2010, Kyle Sluder kyle.slu...@gmail.com wrote:
On Thu, Jun 10, 2010 at 1:58 PM, Frederick C.Lee
frederick_...@apple.com wrote:
Greetings:
I have a situation where I need to access a member of a mutable array
(max 4 members).
Sometimes I could get an out-of-bounds
On Thu, Jun 10, 2010 at 1:58 PM, Frederick C.Lee
frederick_...@apple.com wrote:
Greetings:
I have a situation where I need to access a member of a mutable array (max
4 members).
Sometimes I could get an out-of-bounds exception, if for example, I try to
access member #3 out of a 2-member
It does. Making a call to draggingSourceOperationMask in your acceptDrop
method will give you the operation that is active. No need to cache it.
-Tony
On Jun 10, 2010, at 11:12 AM, Jens Alfke wrote:
On Jun 9, 2010, at 11:12 PM, Graham Cox wrote:
In
Greetings:
I have a situation where I need to access a member of a mutable array (max
4 members).
Sometimes I could get an out-of-bounds exception, if for example, I try to
access member #3 out of a 2-member array.
It's not serious, I could just ignore it and continue.
Question:
Is it
Greg Guerin wrote:
Kevin Boyce wrote:
Sure, it seems like it's just another dispatch from the runloop.
Which would be fine if it copied like 100K bytes per invocation, or
something like that. It seems instead to run off and copy vast
quantities of data before returning. Copying a 4MB
On Jun 10, 2010, at 1:58 PM, Frederick C.Lee wrote:
Is it acceptable to merely trap for the out-of-bound exception within the
method() and continue my way?
... or should I test EVERY TIME I access a member, to see if the member exist?
For better or worse, Cocoa’s policy policy is that an
On Jun 10, 2010, at 4:29 PM, Kevin Boyce wrote:
Boy I'll say! I put the FSCopyObjectAsync call in its own thread, and it
made no difference whatsoever. Apparently that call is completely useless,
unless you want to totally lock up the computer for a second at a time.
Which seems odd to
On Jun 10, 2010, at 2:21 PM, Quincey Morris wrote:
On Jun 10, 2010, at 11:02, Andy Lee wrote:
There was a whole thread about it and someone said they'd written a
replacement class and it seemed to work and they were pretty happy with it
because it gave them a greater ability to debug, I
On Thu, Jun 10, 2010 at 5:13 AM, Mark Aufflick mark-co...@aufflick.com wrote:
At this point I'm thinking of starting a new project and importing my
code in a bit at a time to find the culprit...
I wish I had some encouraging news, but I don't. All I can verify on
my end is that, yes, that is
Thanks, but this is not the case.
The validateDrop method returns a NSDragOperation value that I compute. That is
not the same value that the [draggingInfo draggingSourceOperationMask]
returns, though that is certainly one of the many inputs I use when working out
the validation.
The two
34 matches
Mail list logo