Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
On 3. Oct 2010, at 3:54, Kyle Sluder wrote: > On Oct 2, 2010, at 3:10 AM, Kurt Sutter wrote: > >> Sorry to be obtuse, but it may be that I am overlooking something. >> Presently, we have calls such as >> >> n = PyNumber_Float(obj) >> s = PyString_AsString(obj) >> >> I understand that I would

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kyle Sluder
On Oct 2, 2010, at 3:10 AM, Kurt Sutter wrote: > Sorry to be obtuse, but it may be that I am overlooking something. Presently, > we have calls such as > > n = PyNumber_Float(obj) > s = PyString_AsString(obj) > > I understand that I would need to generate #defines for all those names, such > a

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Gwynne Raskind
On Oct 2, 2010, at 7:20 AM, Ken Thomases wrote: >> Sorry to be obtuse, but it may be that I am overlooking something. >> Presently, we have calls such as >> >> n = PyNumber_Float(obj) >> s = PyString_AsString(obj) >> >> I understand that I would need to generate #defines for all those names, >>

Re: App works in debugger, won't launch in Finder

2010-10-02 Thread Rick Mann
On Oct 2, 2010, at 07:59:29, Kyle Sluder wrote: > On Oct 2, 2010, at 1:57 AM, Rick Mann wrote: > >> I do have another question. I will ship my app with a number of built-in >> plug-ins, but I also want the user to install additional plug-ins, or even >> write their own. Those plug-ins need to

Re: Seriously confused by behavior of NSAffineTransform

2010-10-02 Thread Kyle Sluder
On Oct 2, 2010, at 10:05 AM, Ken Tozier wrote: > > I decided to simplify and created a project just for exploring transforms. > Long story short, I still find them extremely counter intuitive. After > futzing with transforms for a few hours, I decided to try a different tack. > TI ended up wr

Re: Seriously confused by behavior of NSAffineTransform

2010-10-02 Thread Ken Tozier
On Oct 2, 2010, at 9:22 AM, Matt Neuburg wrote: > Perhaps it might be useful if you were to show some code? At least show > where you're using a transform and what transform you're using. What does > "apply a scaling transform to a page view" mean? > > A transform is just a way of affecting subs

Re: App works in debugger, won't launch in Finder

2010-10-02 Thread Kyle Sluder
On Oct 2, 2010, at 1:57 AM, Rick Mann wrote: > I do have another question. I will ship my app with a number of built-in > plug-ins, but I also want the user to install additional plug-ins, or even > write their own. Those plug-ins need to find my app's Framework, both for > building and execut

Re: portable app

2010-10-02 Thread Amy Heavey
Just to let you know, This is great, it now safely stores everything on the thumbdrive for easy access on any machine I like. A perfect solution. Thank You, Many Thanks Amy On 1 Oct 2010, at 12:00AM, Ariel Feinerman wrote: Are you sure in the using of 'library/application support'? Ther

Re: Flipped NSView + scaled NSAffineTransform = confusion

2010-10-02 Thread Matt Neuburg
On Fri, 1 Oct 2010 02:28:33 -0400, Ken Tozier said: >- (void) drawRect:(NSRect) inDirtyRect >{ > [[[self superview] subTransform] concat]; > [[NSColor greenColor] set]; > NSRectFillUsingOperation(inDirtyRect, NSCompositeSourceOver); >} > >What do I need to do to scale a subview using an NSAffineTr

Re: What does core data do during a Save As?

2010-10-02 Thread Jerry Krinock
On 2010 Oct 01, at 21:37, Gideon King wrote: > I have no tool to diff models When you create a mapping model between two data models, there is a "Show Differences" button in the upper left corner. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: What does core data do during a Save As?

2010-10-02 Thread Jerry Krinock
On 2010 Oct 01, at 10:44, Quincey Morris wrote: > Core Data implements Save As as a migration process using a mapping model > that it constructs on the fly Eeek. I never knew that. > and that this fails for models that have parent entities -- specifically when > the parent entities contain r

Re: Hitting Layers

2010-10-02 Thread Matt Neuburg
On Thu, 30 Sep 2010 20:53:56 -0700, Curious Yogurt said: >around. I'm wondering whether I need to modify the first line of the method >(NSPoint translated = [[gameController window] convertScreenToBase:mouseloc];) >when in fullscreen mode? I'm wondering that too. CALayer's hitTest requires a poi

Re: Seriously confused by behavior of NSAffineTransform

2010-10-02 Thread Matt Neuburg
On Sat, 2 Oct 2010 03:50:58 -0400, Ken Tozier said: >I'm trying to learn to use NSAffineTransforms and am finding their behavior so bizarre that they are all but useless. Transforms aren't at all useless, so it might be better to make a different assumption. Have you looked at the many code exam

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Ken Thomases
On Oct 2, 2010, at 5:10 AM, Kurt Sutter wrote: > Sorry to be obtuse, but it may be that I am overlooking something. Presently, > we have calls such as > > n = PyNumber_Float(obj) > s = PyString_AsString(obj) > > I understand that I would need to generate #defines for all those names, such > as

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
On 2 Oct 2010, at 11:07, Ken Thomases wrote: > On Oct 2, 2010, at 3:48 AM, Kurt Sutter wrote: > >> Yes, that is an option I have considered. But, if I understand this >> correctly, it would mean resolving some hundred symbols through dlsym and >> providing a glue function for each of them. Rig

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Ken Thomases
On Oct 2, 2010, at 3:48 AM, Kurt Sutter wrote: > Yes, that is an option I have considered. But, if I understand this > correctly, it would mean resolving some hundred symbols through dlsym and > providing a glue function for each of them. Right? I don't see the need for a glue function. You do

Re: App works in debugger, won't launch in Finder

2010-10-02 Thread Rick Mann
Thanks, Ken. Turns out, it was partly that, but the real problem was the differing working directories, depending on whence the app was launched. I did find a resource that told me about @executable_path, so I fixed up that aspect as well. I do have another question. I will ship my app with a n

Re: Why is NSPopUp broken in drop-down mode?

2010-10-02 Thread Gregory Weston
Seth Willits wrote: > On Oct 1, 2010, at 12:06 PM, G S wrote: > >> Also, nothing >> indicates to the developer why the data-handling behavior of the >> control has changed simply because he chose an "up" or "down" style of >> opening. > > You're correct. A sentence or two in the documentation wo

Re: App works in debugger, won't launch in Finder

2010-10-02 Thread Ken Thomases
On Oct 1, 2010, at 11:52 PM, Rick Mann wrote: > I have an app that has a framework internally (and some plug-ins). When I > launch it from Xcode (debugging), everything works fine. But if I launch it > by double-clicking the icon in the Finder, I get the crash dialog with > "Library not loaded:

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
Ken Yes, that is an option I have considered. But, if I understand this correctly, it would mean resolving some hundred symbols through dlsym and providing a glue function for each of them. Right? (One other option I have just discovered is to place a symlink file in ~/lib, which seems to be i

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Ken Thomases
On Oct 1, 2010, at 11:49 PM, Kurt Sutter wrote: > In our application, the user should be able to change the version of a > library that the application is linked to. Don't link to the library/framework. Dynamically load it (dlopen, dlsym, etc.), instead. Granted, this is a pain in the neck co

Seriously confused by behavior of NSAffineTransform

2010-10-02 Thread Ken Tozier
Hi I'm trying to learn to use NSAffineTransforms and am finding their behavior so bizarre that they are all but useless. I've read the Cocoa drawing docs related to transforms, multiple times, and pored over the NSAffineTransform class docs for hours. I just don't understand why it's doing such