Loading an AS dict that defines 'point' also causes 'points' to be defined??

2009-08-05 Thread David Springer
Folks, I recently switched to using an .sdef in my Cocoa app for defining AS event handlers. The problem is that suddenly it looks like my app defines the property 'points' and this breaks other apps which send AS events to mine. In my .sdef, I do not define a 'point' or 'points' property, nor d

Re: Encoding to use for file names

2009-02-05 Thread David Springer
I generally use UTF8. On Thu, Feb 5, 2009 at 10:29 AM, Francis Devereux wrote: > Hi, > > I am porting an app to Mac OS X (well, actually someone else has ported it > and I am building a cocoa GUI). > > I have an NSString with a filename in it that I need to pass to the > portable code as a char

Re: Targeting Tiger

2009-01-26 Thread David Springer
Hi John, Also worth noting: you can build on Leopard with Xcode 3.x, using the 10.4 SDK, and your app might run fine on a Leopard box. BUT, you still need to test on a native Tiger platform because the systems dylibs are different (and yes, the 10.4 API behaves differently between Tiger and Leopar

Re: Asynchronous timers (without a run loop)

2008-12-04 Thread David Springer
I don't mean to sound patronizing, but unless I have missed some fundamental premise, didn't you just re-invent DO? Maybe the right way to port this framework is to make your API a thin wrapper on top of Obj-C messages, and your set up a wrapper on top of DO setup. Just a thought. - Dave.S On Th

gdb of va_alist?

2008-10-15 Thread David Springer
Folks, I am looking into some legacy code that is called from a third-party library. The function being called has this signature: AStringClass PlatformSpecificImplClass::formatMessage(unsigned int code, va_list* argList) The problem is that on x86 platforms, |argList| seems to point to a valid

WebView security level?

2008-10-02 Thread David Springer
Folks, Disclaimer: I have no idea what I am talking about. I have been asked to increase the "security level" of our WebView-based browser windows. I guess that on a pc/IE, you can somehow set the security level to prevent things like injection attacks and stuff like that? Again, I have no idea

Remove an object from a defaults suite?

2008-08-28 Thread David Springer
Folks, I use -[NSUserDefaults addSuiteNamed:] to add the defaults from a previous version of my app to the defaults search domains. This works fine, except I want to remove a certain key/value pair from the suite. Is there any way to do this? The best plan I can come up with so far is to read t

[SOLVED]: Scaling an NSImage makes the edges disappear.

2008-08-21 Thread David Springer
, 2008 at 2:34 PM, David Springer <[EMAIL PROTECTED]> wrote: > Hi Ken, > > I can build a test app - give me a couple hours to put it together. > > As for antialiasing, I thought that might be the problem, but I set > the image interpolation on the graphics context to > N

Re: Scaling an NSImage makes the edges disappear.

2008-08-21 Thread David Springer
t; > -Ken > > [1]: well, except maybe that you're likely to see antialiasing on the edges. > Your problem looks more severe than antialiasing, though. > > On Thu, Aug 21, 2008 at 12:47 PM, David Springer <[EMAIL PROTECTED]> wrote: >> Folks, >> >> For some

Scaling an NSImage makes the edges disappear.

2008-08-21 Thread David Springer
Folks, For some reason, I am not able to figure this out. I want to draw a scaled NSImage, but the edges of the image are not drawn, it seems like the resizing actually clips the image. I have an NSBitmapImageRep created from some data. I then create the NSImage like this: NSImage *image = [[N

Re: NSPanel not receiving events.

2008-08-14 Thread David Springer
On Thu, Aug 14, 2008 at 4:32 PM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Thu, Aug 14, 2008 at 6:25 PM, David Springer <[EMAIL PROTECTED]> wrote: >> Seems like I am missing some rudimentary thing relative to the event >> loop here. But what? Help? > > Why wo

NSPanel not receiving events.

2008-08-14 Thread David Springer
Folks, I have an NSPanel (not modal), with one button on it. If I instantiate this panel and let the normal app loop run, everything works fine: clicking the button sends a message to the appropriate object. However, if I try to instantiate this panel, then run [NSRunLoop currentRunLoop] myself

Adding an NSColor subclass to NSColorPanel?

2008-07-31 Thread David Springer
Folks, I would like to add instances of a subclass of NSColor to the color panel. The problem is, when you change to another app that does not know about this subclass, the NSColorPanel kind of freaks out and shows all the colors as white (even the system colors) - in some cases it just crashes t

Shipping common app frameworks.

2008-05-12 Thread David Springer
Folks, We need to ship some frameworks that are common to a few of our apps. The question, of course, is where to put these, and how to bundle them with apps so downloads, etc. are not huge and bloated. I'd like to hear other's experience with this. Do you put common frameworks in a place such a

Open Recent->foo suddenly broke

2008-05-06 Thread David Springer
All, My File->Open Recent-> menu suddenly broke and I am having trouble debugging this problem. What messages are sent from the items in this menu, and where are they sent? I want to see if somehow I broke a link somewhere... Thanks! - Dave.S ___ Coc

What do these errors mean?

2008-05-05 Thread David Springer
Folks, This is not strictly a cocoa-dev question, if there is a better list to ask this on, please point me in the right direction. I get a pile of linker warnings like this: ld: warning PLBmpBase::GetLineArray32() const has different visibility (2) in .../third_party/lib-mac/libpaintlib.a(pljpe

Very strange Xcode debugger issue.

2008-05-02 Thread David Springer
Folks, Xcode 2.5 on Leopard, app and all libs built with 10.4u SDK. If I debug my app using Xcode 2.5 (in the GUI), I get these errors while calling the destructor of an object created on the stack: MyApp(26961,0xa02e3fa0) malloc: *** error for object 0x28001660: pointer being freed was not allo

flat_namespace?

2008-04-28 Thread David Springer
Folks, Is there a way to tell if a lib/dylib was built with flat_namespace turned on? otool perhaps? Thanks, - Dave.S ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

How do I use a WebView in a modal dialog?

2008-04-25 Thread David Springer
Folks, How can I use a WebView in a modal dialog? I understand that WebViews don't work in the modal runloop mode, so is there a way to fake this? Run my own nextEventMatchingMask: loop (I have tried this with very limited success)? Run the window containing the WebView in a separate thread with

Interesting WebView/NSRunLoop issue

2008-04-24 Thread David Springer
Folks, I need help figuring out this problem. Basically, I want to run a WebView in a modal dialog, but WebView's don't work in NSModalPanelRunLoopMode. So, I have been trying unsuccessfully to fake a modal run loop while running it in NSDefaultRunLoopMode. This is my latest attempt: // Leav

Re: Bindings for NSComboBox? [SOLVED]

2008-04-02 Thread David Springer
mean that you want to create a new object and add it to the array, > by typing a new string into the combo box (and pressing enter)? My feeling > is you'd need to write a bit of code yourself for that. > > Ian. > > > > On 1/04/2008, at 9:44 AM, David Springer wrote: >

Bindings for NSComboBox?

2008-03-31 Thread David Springer
All, I'm having trouble setting up the bindings for my NSComboBox. I bind the NSComboBox's content to NSArrayController's arrangedObjects. This works fine. Now, I want to add to the content array when you enter a new string into the combo box. Say, for example, I start with an array of @"file

Simple NSComboBox example?

2008-03-31 Thread David Springer
Folks, Is there a simple NSComboBox example that uses bindings out there? I want to populate an NSComboBox with a list of filenames using an NSArrayController, etc. Thanks! - Dave.S ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Synchronous Ruby calls from Safari?

2008-03-19 Thread David Springer
All, The attached html/Javascript and Ruby scripts run differently on a PC with IE than they do no a Mac with Safari. On IE, the alert panels pop up in sequence; as if the Ruby call is synchronous. On the Mac, the last alert pops up before the third alert, or simultaneously with it. I did some