Help system question...

2010-06-11 Thread Matthew Weinstein
Dear programmers, There's some sort of bug in my help system, wondering if anyone can help. I have a set of nested folders in the help system: one for tutorial, one for user manual, but one link doesn't work in the help system, but works fine if I click it directly (even if I go into the applica

Re: How to specify the superview in the Interface Builder?

2010-06-11 Thread ico
On Sat, Jun 5, 2010 at 1:19 AM, jeremy wrote: > Would you provide some additional information: > > 1) Is the IB designed custom view in MainWindow.xib or is it in its own nib > file? > > 2) Did you create a custom view controller class to manage the screen full > of content shown in the custom vi

A variable-height "Small List" view with [+] and [-] buttons

2010-06-11 Thread Jerry Krinock
I'd like to implement a list view for a small number of items, which the user can add to or remove from by clicking [+] and [-] buttons in the margin. The height of the view will vary with the number of items. In this particular case, each item would be a popup menu. It would be similar to th

applicationShouldTerminate gets called on with no edited documents

2010-06-11 Thread Brad Stone
I have (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender in my app delegate and it gets called when the user quits if **no** documents have been edited (I'm using Core Data). If one of my documents **is** edited it doesn't get called. It goes right to - (void)clos

Re: NSTrackingArea pending install - NSTrackingEnabledDuringMouseDrag not working

2010-06-11 Thread Rainer Standke
It turns out that things work almost as expected - but not during the drag. This flag seems to have no effect. I add the tracking area and then I have this: [self dragImage:dragImage at:dragImageCenter offset:NSMakeSize(0.0, 0.0) event:theEvent pasteboard:pboard source:self slideBack:YES];

Re: NSTrackingArea pending install

2010-06-11 Thread Michael Vannorsdel
I had this happen a couple times when dealing with threading accidents. If the tracking rects are added from a secondary thread or the window is ordered front by a secondary thread, then the tracking areas will be stuck in a pending state. There's probably more reasons for this but these are t

NSTrackingArea pending install

2010-06-11 Thread Rainer Standke
Hello all, I have a subclassed NSImageView that is a drag source and a drag destination. I am trying to have an NSTrackingArea so that when the drag out of the image view leaves they window I can update the cursor to indicate deletion of the item - I am thinking of the cursor that looks like an

Re: NSControl objects on a custom view

2010-06-11 Thread Jens Alfke
On Jun 11, 2010, at 7:04 AM, Florian Soenens wrote: > When i put default buttons or a NSSearchfield or a NSProgressindicator on top > of my custom view, the subitems display a background. By “on top of”, do you mean they’re subviews of your custom view, or siblings that are just positioned in

Re: dataWithPDFInsideRect and NSPrintOperation

2010-06-11 Thread Gideon King
Thanks for the code Graham. I implemented it just with a simple boolean to control whether it is really printing or not, and that will be sufficient for my current needs, but I'll keep your solution in mind for if I come across it again. Gideon On 11/06/2010, at 10:36 PM, Graham Cox wrote: >

Re: Double binding not possible?

2010-06-11 Thread vincent habchi
Ken, > Yes, it is impossible. That's what I thought. > Those bindings are two-way. (Not all are, but those are.) Thus, when the > bound-to property changes, so does the view's selection. Now, how would this > work if the view's selection were bound to two different properties? What if > t

Re: Double binding not possible?

2010-06-11 Thread Ken Thomases
On Jun 11, 2010, at 9:33 AM, vincent habchi wrote: > I have a popUp button with which I'd like to update two objects at the same > time (one with the selected index, and the other with the selected value). > Can you confirm me it is impossible (once one binding of the selected type is > set, th

Re: zoom question

2010-06-11 Thread Graham Cox
On 12/06/2010, at 12:39 AM, wrote: > I'm working on a droplet where a user can drop an eps image and > zoom in on it. I'm running it in Leopard 10.5.8. It's working > decently, but when I zoom it looks all pixelated. Try disabling caching on the NSImage, then it will be forced to draw al

zoom question

2010-06-11 Thread jyoung79
Hello, I'm working on a droplet where a user can drop an eps image and zoom in on it. I'm running it in Leopard 10.5.8. It's working decently, but when I zoom it looks all pixelated. >From experimenting, I found that if I add this code to the "- (void)zoomIn:(id)sender" function it makes i

Double binding not possible?

2010-06-11 Thread vincent habchi
Hi there, I hope this question will be less silly as the previous ones. Yet, it is very simple: I have a popUp button with which I'd like to update two objects at the same time (one with the selected index, and the other with the selected value). Can you confirm me it is impossible (once one bind

NSControl objects on a custom view

2010-06-11 Thread Florian Soenens
Hi list, here's a question about using NSControl objects on a custom view. I have a couple of custom NSView that draw a gradient or a background pattern etc... When i put default buttons or a NSSearchfield or a NSProgressindicator on top of my custom view, the subitems display a background. For

Re: Image Value Transformer setting image alpha less than 1.0

2010-06-11 Thread Gustavo Pizano
Graham hello. In case its the context, what can be an approach to try? thx G. On Jun 11, 2010, at 3:09 PM, Graham Cox wrote: > > On 11/06/2010, at 10:59 PM, Gustavo Pizano wrote: > >> any idea why Im not getting full opacity? > > > Opacity is neither an image nor an NSImageView property, it

Re: Image Value Transformer setting image alpha less than 1.0

2010-06-11 Thread Gustavo Pizano
On Jun 11, 2010, at 3:09 PM, Graham Cox wrote: > > On 11/06/2010, at 10:59 PM, Gustavo Pizano wrote: > >> any idea why Im not getting full opacity? > > > Opacity is neither an image nor an NSImageView property, it's applied when > the image is drawn (unless the image itself has some inherent

Re: Image Value Transformer setting image alpha less than 1.0

2010-06-11 Thread Graham Cox
On 11/06/2010, at 10:59 PM, Gustavo Pizano wrote: > any idea why Im not getting full opacity? Opacity is neither an image nor an NSImageView property, it's applied when the image is drawn (unless the image itself has some inherent transparency). There's nothing in the posted code that would a

Image Value Transformer setting image alpha less than 1.0

2010-06-11 Thread Gustavo Pizano
Hello all.. In my Core Data app, Im fetching a NSData property corresponding an image. Now Im binding an NSImageWell value to the Entity's array controller and setting the propper keypath and setting the value transformer to IZImageTransformer The image value for each MO appears but I realized

Re: dataWithPDFInsideRect and NSPrintOperation

2010-06-11 Thread Graham Cox
On 11/06/2010, at 3:06 AM, Gideon King wrote: > 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 v

Re: NSOutlineView drag and drop problem

2010-06-11 Thread Graham Cox
On 11/06/2010, at 6:03 PM, Tony Romano wrote: > I guess I don't understand. Validating the drop to me is different then the > "type" of drop action. Both in the validate and the accept, the user decides > the "type" of drop action(copy/move) . That's true, but in the case of the validate ca

Re: NSOutlineView drag and drop problem

2010-06-11 Thread vincent habchi
Le 11 juin 2010 à 07:24, Graham Cox a écrit : > The two methods do much the same work so there's a good opportunity to factor > the code as Jens suggests, but locally saving the return value from > validation works OK and appears to be all I can do. Saving a return value in a ivar is usually no

Re: NSOutlineView drag and drop problem

2010-06-11 Thread Tony Romano
I guess I don't understand. Validating the drop to me is different then the "type" of drop action. Both in the validate and the accept, the user decides the "type" of drop action(copy/move) . The validate method decides if the user is allowed with the operation which is what is determined by