Re: CoreData Relationships and Array Controllers

2011-10-04 Thread Amy Gibbs
On 2 Oct 2011, at 8:02PM, Quincey Morris wrote: However, the task of finding all the products for a customer seems to be perfectly suited to a Core Data fetch. You should be able to set a suitable fetch predicate on the array controller. You'd still have to deal with the issue of how you kn

printing and the responder chain

2011-10-04 Thread Torsten Curdt
I have a non-document based app. It's a master detail layout with a NSOutlineView and a custom NSView (in a NSScrollView in a NSSplitView) on the right. Now when I initiate a "Print" from the menu all that shows up in the print preview is the outline view. Reading the documentation from http://dev

Re: printing and the responder chain

2011-10-04 Thread Graham Cox
On 04/10/2011, at 9:23 PM, Torsten Curdt wrote: > "Printing is generally initiated by the user choosing the Print menu > command, which usually sends either a print: or printDocument: > message, So which is it? You can look at the Print menu item in the MainMenu.xib and see what its action and

Re: printing and the responder chain

2011-10-04 Thread Torsten Curdt
I now have changed the actions in the menu to go through my controller which (at least in this case) is just fine. Now I can start and configure the NSPrintOperation myself. But I am still wondering what was wrong with going through the first responder. cheers, Torsten On Tue, Oct 4, 2011 at 12:

PDF viewing

2011-10-04 Thread Dan Hopwood
Hi all, Is there any way to open a PDF without using a UIWebView i.e. like the Mail app? Many thanks, Dan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: printing and the responder chain

2011-10-04 Thread Torsten Curdt
> In order for your custom view to become first responder, it must also return > YES from -acceptsFirstResponder head ... desk Off course! I bet that was it ...but as you said: to avoid surprises I better move the action off the first responder. Thanks, Graham! cheers, Torten > but mouse event

Re: PDF viewing

2011-10-04 Thread Eric Gorr
Yes. See the ZoomingPDFViewer sample code. http://developer.apple.com/library/ios/#samplecode/ZoomingPDFViewer/Introduction/Intro.html >From the description: This sample code project demonstrates how to create a PDF viewer using the UIScrollView and CATilerLayer classes. On Oct 4,

Re: PDF viewing

2011-10-04 Thread Graham Cox
On 04/10/2011, at 10:26 PM, Dan Hopwood wrote: > Is there any way to open a PDF without using a UIWebView i.e. like the Mail > app? Errr... NSImage? --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: PDF viewing

2011-10-04 Thread Graham Cox
On 04/10/2011, at 10:34 PM, Graham Cox wrote: > > On 04/10/2011, at 10:26 PM, Dan Hopwood wrote: > >> Is there any way to open a PDF without using a UIWebView i.e. like the Mail >> app? > > > Errr... NSImage? Never mind - I see you're probably asking about iOS, not Mac (a better title woul

Fine-tuning NSTextField auto completion

2011-10-04 Thread Nala Gnirut
Hi all, in my project I'm using NSControlTextEditingDelegate to auto complete what's typed in a NSTextField with search location suggestions retrieved from Google Maps API. "complete:" message is automatically sent to field editor by a NSTimer short after user ends typing. Now I'd like to fine-tun

Quicklook not working for network volume items

2011-10-04 Thread Chris Paveglio
I am trying to get Quicklook working in an app of mine. I'm not sure all these details are relevant, but better to have more than less info. I have a table that shows the number of files in certain folders on a network volume. In one column is the number of files, another column shows the first

App opens in background after adding Growl support.

2011-10-04 Thread Todd Freese
I just added the Growl framework to my app and it works great. Except… now my app always launches in the background. Everything else works great. If I disable growl, my app opens in the foreground as expected. Does this on Snow Leopard or Lion. Has anyone seen this? Todd Freese The Filmworkers

Re: App opens in background after adding Growl support.

2011-10-04 Thread Laurent Daudelin
On Oct 4, 2011, at 10:01, Todd Freese wrote: > I just added the Growl framework to my app and it works great. Except… now my > app always launches in the background. Everything else works great. If I > disable growl, my app opens in the foreground as expected. Does this on Snow > Leopard or Lio

Re: App opens in background after adding Growl support.

2011-10-04 Thread Todd Freese
Are you just issuing a : [GrowlApplicationBridge setGrowlDelegate:self]; at startup? Todd On Oct 4, 2011, at 3:31 PM, Laurent Daudelin wrote: > On Oct 4, 2011, at 10:01, Todd Freese wrote: > >> I just added the Growl framework to my app and it works great. Except… now >> my app always launch

Re: Years-old mysterious bindings crash

2011-10-04 Thread Seth Willits
On Oct 3, 2011, at 8:56 PM, Quincey Morris wrote: > On Oct 3, 2011, at 18:29 , Seth Willits wrote: > >> I've been receiving reports of this rare but persistent crash over the past >> few years, and I've never been able to reproduce it or figure out what's >> causing it. > > One thing you coul

Strange mystery with Core Animation

2011-10-04 Thread Graham Cox
Here's a weird one. I have some Core Animation layers (specifically, it's a CAReplicatorLayer), and I'm changing the 'instanceTransform' property in order to shift the position of the reflection up and down. When I trigger this code from a mouse click (through a checkbox, in a different window

Re: Years-old mysterious bindings crash

2011-10-04 Thread William Squires
Sounds like you're inadvertently depending on the order of loading somehow. Are you setting up all your bindings in awakeFromNib:? Or do you have any bindings (set in IB) which refer to something the controller object may have to load first? Just a thought. On Oct 3, 2011, at 8:29 PM, Seth Will

Re: Years-old mysterious bindings crash

2011-10-04 Thread Seth Willits
On Oct 4, 2011, at 5:18 PM, William Squires wrote: > Sounds like you're inadvertently depending on the order of loading somehow. > Are you setting up all your bindings in awakeFromNib:? Or do you have any > bindings (set in IB) which refer to something the controller object may have > to load f

[SOLVED] Re: Strange mystery with Core Animation

2011-10-04 Thread Graham Cox
Never mind - silly mistake elsewhere, as expected….. G. On 05/10/2011, at 10:56 AM, Graham Cox wrote: > Can anyone offer any explanation for this? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: Years-old mysterious bindings crash

2011-10-04 Thread Quincey Morris
On Oct 4, 2011, at 17:59 , Seth Willits wrote: > There aren't any bindings setup at the point it crashes. The controller is > connected to absolutely nothing. It literally is > > controller = [[NSObjectController alloc] initWithContent:nil]; > ... unrelated things ... > > [self view]; > > In a

Re: CoreData Relationships and Array Controllers

2011-10-04 Thread Quincey Morris
On Oct 4, 2011, at 01:49 , Amy Gibbs wrote: > If anyone could point me in the direction of a good fetching explanation or > tutorial that would be great. I don't know of a good reference for you. Googling is as likely as not to turn something up. I'd also suggest you try reading about fetches i

Re: Strange mystery with Core Animation

2011-10-04 Thread Seth Willits
On Oct 4, 2011, at 4:56 PM, Graham Cox wrote: > Here's a weird one. > > I have some Core Animation layers (specifically, it's a CAReplicatorLayer), > and I'm changing the 'instanceTransform' property in order to shift the > position of the reflection up and down. > > When I trigger this code f

Use Subclass in Interface Builder

2011-10-04 Thread Dong Feng
I have a subclass of NSOpenGLView which named POpenGLView. I tried two ways to use it in IB: Method 1: To create an OpenGL view in IB directly, and set its class type "POpenGLView". Method 2: To create a NSView in IB, and set its class type "POpenGLView". The most significant difference between

Re: Use Subclass in Interface Builder

2011-10-04 Thread Andy Lee
See "The Object Loading Process": > a. Standard Interface Builder objects (and custom subclasses of those > objects) receive an initWithCoder:

Re: Use Subclass in Interface Builder

2011-10-04 Thread Dong Feng
Thank you, Andy. But slightly wired that NSOpenGLView isn't considered as a custom view, considering it itself is a subclass of NSView. Anyway at least I can count on the way it works. :-) 2011/10/5 Andy Lee > See "The Object Loading Process": > > < > http://developer.apple.com/library/mac/#d