move large data structure to Core Data?

2013-03-02 Thread James Maxwell
Hello All, I have an app that creates a large and complex graph structure. It's working nicely now, after a fairly lengthy development process, but I'm having scaling issues -- the data structure gets too big to keep in memory. So, I'm thinking about Core Data. The thing is, the process of buil

Re: Documents not opening from Finder

2013-03-02 Thread Quincey Morris
On Mar 2, 2013, at 17:11 , Graham Cox wrote: > Unless you send -retainArguments to it, in which case it, well, does what it > says on the tin. OK, but it's still a bit more complicated than that. Using the override code suggested in the AppKit release notes I linked to, you also have to deal w

Re: Documents not opening from Finder

2013-03-02 Thread Graham Cox
On 03/03/2013, at 11:05 AM, Quincey Morris wrote: > The other gotcha is that NSInvocation doesn't take ownership of any objects > referred to by its arguments. That means being very careful when using ARC, > since it can't memory-manage them for you. Unless you send -retainArguments to it,

Re: More IB constraints woes

2013-03-02 Thread Rick Mann
Sorry, I moved the video: http://f.cl.ly/items/431I2O2A0y350r3k0a13/IBConstraintsResize.mov --- On Mar 2, 2013, at 15:16 , Chuck Soper wrote: > At the bottom of the following page it says, "Tip: To test the behavior of > Auto Layout constraints when you are editing a nib file, hold dow

Re: Documents not opening from Finder

2013-03-02 Thread Quincey Morris
On Mar 2, 2013, at 13:17 , "Mills, Steve" wrote: > But I'm not calling runModalPrintOperation, nor do I want to, because we need > to do something completely different at this point. This is the reason I'm > overriding printDocumentWithSettings in the first place. I just need to know > how to

Re: More IB constraints woes

2013-03-02 Thread Rick Mann
On Mar 2, 2013, at 15:16 , Chuck Soper wrote: > At the bottom of the following page it says, "Tip: To test the behavior of > Auto Layout constraints when you are editing a nib file, hold down the > Command key and resize the window." >

Re: More IB constraints woes

2013-03-02 Thread Warren Postma
I recently asked a very similar question to this on stackoverflow. Answer: Edit the constraints using the properties/utilities area and not using drag/drop as the XCode/IB drag-drop constraint engine is horribly broken. It even creates duplicate constraints for you that can't be deleted. http://

Re: More IB constraints woes

2013-03-02 Thread Chuck Soper
At the bottom of the following page it says, "Tip: To test the behavior of Auto Layout constraints when you are editing a nib file, hold down the Command key and resize the window."

More IB constraints woes

2013-03-02 Thread Rick Mann
For the life of me, I can't get IB to behave the way I want it to (or, I don't understand how to use IB). In this scenario, I want to add some widgets to a window. First I need to make space in the window, so I command-drag the bottom edge to enlarge it. I thought holding command while dragging

Re: Documents not opening from Finder

2013-03-02 Thread Kyle Sluder
On Mar 2, 2013, at 1:17 PM, "Mills, Steve" wrote: > On Mar 2, 2013, at 15:06, "Kyle Sluder" wrote: > >> The documentation is pretty clear about how NSDocument's default >> implementation works. -[NSDocument >> runModalPrintOperation:delegate:didPrintSelector:context:] is what actually >> mes

Re: Documents not opening from Finder

2013-03-02 Thread Mills, Steve
On Mar 2, 2013, at 15:06, "Kyle Sluder" wrote: > The documentation is pretty clear about how NSDocument's default > implementation works. -[NSDocument > runModalPrintOperation:delegate:didPrintSelector:context:] is what actually > messages the delegate with the didPrintSelector. As long as you

Re: Documents not opening from Finder

2013-03-02 Thread Kyle Sluder
On Mar 2, 2013, at 12:16 PM, Steve Mills wrote: > Perhaps the problem is that my > printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo > method doesn't call the selector when we're finished printing. I don't > understand how to call the delegate with that selector an

Re: Documents not opening from Finder

2013-03-02 Thread Steve Mills
Perhaps the problem is that my printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo method doesn't call the selector when we're finished printing. I don't understand how to call the delegate with that selector and can't find any examples of this. Any pointers? Code sam

Re: Is it possible to detect a virtual machine

2013-03-02 Thread Matthew Kozak
This depends on the virtualization technology in question: http://www.meetup.com/CocoaHeads-Stockholm/messages/boards/thread/26497882 -and- http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 ...the assumptions of which can each be their own moving

Re: Is it possible to detect a virtual machine

2013-03-02 Thread Kyle Sluder
On Mar 2, 2013, at 8:17 AM, Kjell Nilsson wrote: > Hi > > I am wondering if it is possible to detect if my Cocoa Application is running > in a virtual machine like VMWare, VirtualBox or Parallells Desktop from > inside my app. May I ask what your ultimate goal is? If it's anti-piracy, I woul

Re: Is it possible to detect a virtual machine

2013-03-02 Thread Jean Suisse
There is an article on code project that may be useful to you. Maybe you can adapt the code to suit your needs ? http://www.codeproject.com/Articles/9823/Detect-if-your-program-is-running-inside-a-Virtual --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB)

Re: Is it possible to detect a virtual machine

2013-03-02 Thread Jean Suisse
I don't have the answer to your question, but here is a thought: Virtual machines, such as VMWare, present some generic hardware to the OS they run. Could you detect the available hardware, check the vendor, and then decide wether or not you are running in a virtual environment ? Jean -

Is it possible to detect a virtual machine

2013-03-02 Thread Kjell Nilsson
Hi I am wondering if it is possible to detect if my Cocoa Application is running in a virtual machine like VMWare, VirtualBox or Parallells Desktop from inside my app. Kind regards --kerusan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)