Re: An Example NSStatusItem with a menu

2008-05-09 Thread Jere Gmail
it is easy. Just set the properties of the NSStatusItem. Then don't state setMenu. Instead call setAction with a method. [status_menu setAction:@selector(menuClick:)]; In that method you can add all the items you want. At the end of the method you have to call the popUpStatusItemMenu method to

Re: How to send email without using email client

2008-05-09 Thread Torsten Curdt
On May 9, 2008, at 02:58, Chris Suter wrote: On 08/05/2008, at 8:10 PM, vinitha ks wrote: I'm working with mac 10.5 and xcode3.0.I've to send email from an application with out using any email client.When i try to use message framework,It doesn't work.(deliverMessage always returns no)Is

NSApplicationMain Main NIB File

2008-05-09 Thread Simon Wolf
I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions. I'm a VB developer who has been a Mac user for several years but I'm only now starting to dip my toe into XCode and I think that I'm going to have loads of questions, some

Re: NSApplicationMain Main NIB File

2008-05-09 Thread Stephan Burlot
In Xcode, in the Project menu, choose Edit Active Target then under the properties tab you'll see Main Nib Class. This is where is it defined. Stephan Le 9 mai 08 à 11:10, Simon Wolf a écrit : I'm going to apologise here in my first contribution to this list for the potential stupidity

Re: NSApplicationMain Main NIB File

2008-05-09 Thread Simon Wolf
Thanks Stephan. The whole area of building and build configuration seems to be ignored by Aaron Hillegass's wonderful book so I may need to delve into the official Xcode User Guide. Simon On 9 May 2008, at 11:15, Stephan Burlot wrote: In Xcode, in the Project menu, choose Edit Active

Re: NSApplicationMain Main NIB File

2008-05-09 Thread Paul Sargent
On 9 May 2008, at 10:10, Simon Wolf wrote: I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions. I'm a VB developer who has been a Mac user for several years but I'm only now starting to dip my toe into XCode and I think that I'm

Re: Crashes with NSOpenPanel and garbage collection

2008-05-09 Thread Daniel Parnell
Thanks for that. I was wondering if that might be the case, although I've not been able to find anything online about the problem. One of the thoughts I've had about a possible fix is to create a non garbage collected framework containing just a stub which opens the NSOpenPanel and

Re: NSPopUpButton again

2008-05-09 Thread Johnny Lundy
Thanks Ken. That worked. I thought I had to bind everything through the Controller. It seemed to me that I wasn't allowed to bind a View item's (the NSPopUpButton) property directly to a model object's (popup.selectedGame) property. But I do not see any way to use the controller here to

Re: NSApplicationMain Main NIB File

2008-05-09 Thread Simon Wolf
On 9 May 2008, at 12:48, Paul Sargent wrote: On 9 May 2008, at 10:10, Simon Wolf wrote: I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions. I'm a VB developer who has been a Mac user for several years but I'm only now starting to

Re: Threading - How its done?

2008-05-09 Thread Paul Sargent
Sorry, long non-cocoa post, but maybe there some useful info for someone. On 7 May 2008, at 18:33, Army Research Lab wrote: Pay particular attention to the section titled HDL and programming languages. Chip designers have had to contend with these problems for years, and developed

Re: How to send email without using email client

2008-05-09 Thread Buddy Kurz
On May 8, 2008, at 5:58 PM, Chris Suter wrote: On 08/05/2008, at 8:10 PM, vinitha ks wrote: I'm working with mac 10.5 and xcode3.0.I've to send email from an application with out using any email client.When i try to use message framework,It doesn't work.(deliverMessage always returns no)Is

Re: How to send email without using email client

2008-05-09 Thread Mike Abdullah
By the sounds of that I'd recommend Pantomine then since setting up the e-mail server info would only be required the once. On 9 May 2008, at 15:44, Buddy Kurz wrote: On May 8, 2008, at 5:58 PM, Chris Suter wrote: On 08/05/2008, at 8:10 PM, vinitha ks wrote: I'm working with mac 10.5

Re: Superview and Subview Implementation Question

2008-05-09 Thread Jens Alfke
On 8 May '08, at 7:05 PM, Kip Nicol wrote: I was wondering if anyone thought that it would be better to implement all of the control code (when subviews are selected, moved, cells selected, etc) solely within the custom superclass? This way sounds like it may be more work up front, but in

Re: How to send email without using email client

2008-05-09 Thread Buddy Kurz
The problem with that is that when I start reading the LGPL license, my brain cells start dying... This is a marginally successful 25 year old closed source commercial application and I don't mind being a self taught programer but I don't want to be a self taught lawyer (or brain surgeon).

Re: NSPopUpButton again

2008-05-09 Thread Johnny Lundy
On May 9, 2008, at 12:52 AM, Ken Thomases wrote: It seemed to me that I wasn't allowed to bind a View item's (the NSPopUpButton) property directly to a model object's (popup.selectedGame) property. But I do not see any way to use the controller here to communicate with a property in the

Re: NSApplicationMain Main NIB File

2008-05-09 Thread Jens Alfke
On 9 May '08, at 6:41 AM, Simon Wolf wrote: So much to learn ... but what a fantastically refreshing change from VB6 and .Net. So I gather :) I just read this excellent article on ArsTechnica by a Windows developer who's recently switched to Mac, due to how messed-up Windows' APIs are:

Re: NSApplicationMain Main NIB File

2008-05-09 Thread Simon Wolf
On 9 May 2008, at 16:11, Jens Alfke wrote: On 9 May '08, at 6:41 AM, Simon Wolf wrote: So much to learn ... but what a fantastically refreshing change from VB6 and .Net. So I gather :) I just read this excellent article on ArsTechnica by a Windows developer who's recently switched to

Re: Crashes with NSOpenPanel and garbage collection

2008-05-09 Thread Michael Ash
On Fri, May 9, 2008 at 8:17 AM, Daniel Parnell [EMAIL PROTECTED] wrote: Thanks for that. I was wondering if that might be the case, although I've not been able to find anything online about the problem. One of the thoughts I've had about a possible fix is to create a non garbage collected

Re: How to send email without using email client

2008-05-09 Thread Torsten Curdt
On May 9, 2008, at 16:52, Mike Abdullah wrote: By the sounds of that I'd recommend Pantomine then since setting up the e-mail server info would only be required the once. And where would you configure it? I think that is the annoying bit. IMO it would make sense to have the SMTP server be

Re: Threading - How its done?

2008-05-09 Thread Timothy Reaves
On Thu, May 8, 2008 02:45, Chris Hanson wrote: --snip-- And unless the object's class documentation says instances are safe to share across multiple threads, you'd be violating its API contract by doing so. Just a point of clarification here: this me violate it's design (intended usage

NSNumberFormatter Changes Reflected In NSTextField

2008-05-09 Thread Simon Wolf
I have an NSTextField with an associated NSNumberFormatter which I am using to format the values shown to a specific number of decimal places. I have a second NSTextField which I am using to display and edit the number of decimal places that I want shown and I have used the

holding NSOutlineView from display

2008-05-09 Thread Nick Rogers
Hi, my app has only one window, with the outline view in a tab, which I show after the data is ready. The problem is how can I hold outline view until, the data is ready completely. I gather that I'd have to do something with the method: - (id)outlineView:(NSOutlineView *)ov

Re: Crashes with NSOpenPanel and garbage collection

2008-05-09 Thread John Stiles
Though I guess he could make a LSUIElement application to handle this. Kinda clunky, but it would work. Michael Ash wrote: On Fri, May 9, 2008 at 8:17 AM, Daniel Parnell [EMAIL PROTECTED] wrote: Thanks for that. I was wondering if that might be the case, although I've not been able to

Re: How to send email without using email client

2008-05-09 Thread John Stiles
We have an internal app which sends emails in a similar fashion (all for automated stuff, not for users to see/touch) and we shell out to a Perl script which uses MIME::Lite to handle this. It works perfectly for us. I'm not sure how applicable it will be for you, but it's handled everything

Re: holding NSOutlineView from display

2008-05-09 Thread Jens Alfke
On 9 May '08, at 8:59 AM, Nick Rogers wrote: my app has only one window, with the outline view in a tab, which I show after the data is ready. The problem is how can I hold outline view until, the data is ready completely. Don't worry about it. If you're using a custom dataSource (instead

Re: How to send email without using email client

2008-05-09 Thread Jens Alfke
On 9 May '08, at 8:08 AM, Buddy Kurz wrote: The problem with that is that when I start reading the LGPL license, my brain cells start dying... This is a marginally successful 25 year old closed source commercial application and I don't mind being a self taught programer but I don't want

Re: How to send email without using email client

2008-05-09 Thread David Hoerl
I have the same need and am trying to resurrect EDMessage (whose project does not now even compile). Just a quick note - this capability is of great value when your code is running on some server inside a firewall, and you want to get periodic status messages (and that server itself does not

Re: Crashes with NSOpenPanel and garbage collection

2008-05-09 Thread Corbin Dunn
Have you logged a bug on this yet? thanks, corbin On May 8, 2008, at 7:12 PM, Daniel Parnell wrote: Hi All, I'm having an interesting problem. I'm trying to use NSOpenPanel to select some files (as one usually does), however if I compile with garbage collection on and then try to use

Re: How to send email without using email client

2008-05-09 Thread Ilan Volow
I don't know the setup of your system, but if you've got a reasonably modern RDBMS server running everything, there might be a SMTP extension/module for that database that would let you set up a trigger procedure that can send out e-mails to patients when new appointment records are added.

Re: How to send email without using email client

2008-05-09 Thread Jens Alfke
You can also send mail pretty easily by using NSTask to invoke /usr/ bin/sendmail — the parameters are pretty simple, check the man page. Normally I'm not a big advocate of getting things done by running Unix commands, but in this case the alternatives are all pretty complex and involve a

Re: How to send email without using email client

2008-05-09 Thread j o a r
On May 9, 2008, at 10:48 AM, Jens Alfke wrote: You can also send mail pretty easily by using NSTask to invoke /usr/ bin/sendmail — the parameters are pretty simple, check the man page. Normally I'm not a big advocate of getting things done by running Unix commands, but in this case the

Did I reinvent the wheel?

2008-05-09 Thread Western Botanicals
I would like your opinions about the following framework. http://www.justingiboney.com/code I am an IS major, not a CS major, so I don't know what it is like for probably most of you. You probably have a much better grasp on application development than I do. What I have been taught, is

Re: How to send email without using email client

2008-05-09 Thread Jason Stephenson
Jens' description of the intent of the LGPL is pretty much the same as my understanding. However, another option exists. You can always contact the author of the LGPL or GPL code and request a license agreement that allows you to use their code in a closed product. Some are quite amenable to

Re: Superview and Subview Implementation Question

2008-05-09 Thread Kip Nicol
Awesome, thanks for the feedback. It's most helpful! For cell selection, I want to be able to select multiple cells from multiple subviews during one drag. For example, if you click and drag from one cell in one subview to another cell in another subview, all the cells within the dragged

Re: How to send email without using email client

2008-05-09 Thread Jens Alfke
On 9 May '08, at 11:03 AM, j o a r wrote: This is typically a bad idea for another reason: With the amount of spam in circulation today, many - If not most - mail servers now flat out reject email that is not sent from reputable mail servers I don't think that's an issue. The sendmail

Re: NSSound dropouts with Leopard on a G5

2008-05-09 Thread Jens Alfke
On 9 May '08, at 12:10 PM, Jonathan Hendry wrote: We have an experiment-running program which uses NSSound to play auditory stimuli. After upgrading a G5 to Leopard, we're seeing significant audio problems that we didn't see on Tiger. Sometimes, it's just a momentary dropout, but other

Re: Did I reinvent the wheel?

2008-05-09 Thread Jens Alfke
On 9 May '08, at 11:10 AM, Western Botanicals wrote: I would like your opinions about the following framework. http://www.justingiboney.com/code Does this framework already exist in cocoa (did I reinvent the wheel)? It looks like you're doing the same kind of thing as NeXT's EOF

Re: NSSound dropouts with Leopard on a G5

2008-05-09 Thread Jonathan Hendry
On May 9, 2008, at 3:27 PM, Jens Alfke wrote: On 9 May '08, at 12:10 PM, Jonathan Hendry wrote: We have an experiment-running program which uses NSSound to play auditory stimuli. After upgrading a G5 to Leopard, we're seeing significant audio problems that we didn't see on Tiger.

Re: Did I reinvent the wheel?

2008-05-09 Thread Sherm Pendley
On Fri, May 9, 2008 at 3:42 PM, Jens Alfke [EMAIL PROTECTED] wrote: In certain types of apps, yes :) I just don't think many people are writing these types of apps in Cocoa. This type of enterprise software usually seems to be done for Windows, or in Java or as a web service. I'm looking in

Re: Did I reinvent the wheel?

2008-05-09 Thread Western Botanicals
Thank you for your response. Those classes are a start, but they leave all the hard parts as abstract methods to be filled in, so I don't think they'd be useful on their own to anyone else. Would it be a good thing then, to make it like Ruby on Rails and assume that the attribute names

Re: regarding fxPlug plugins

2008-05-09 Thread Steve Christensen
I don't know what FxFactory does to create custom effects, and I don't know that there is a preferred solution to your problem. That method is not the typical way that plugins are created. You can certainly write code that will assemble the expected FxPlug bundle pieces, which should be

IKImageView zooming

2008-05-09 Thread Randall Meadows
Seriously, is this how IKImageView zooming is *supposed* to be? http://www.not-pc.com/IKImageViewZooming.mov (13MB) That's an absolute train wreck. Shirley, I *must* be missing some call to make this do the right thing. Any pointers as to what that might be will be greatly appreciated.

Sort

2008-05-09 Thread Norio
Suppose that you have these 9 strings:0001,0002,0003,001,002,003,01,02,03. I'd like to sort them as 0001,001,01,0002,002,02,0003,003,03 as Finder. I tried a sample code of Sorting strings like Finder in Searching, Comparing, and Sorting Strings in String Programming Guide for Cocoa. However the

Re: Sort

2008-05-09 Thread Charles Steinman
--- Norio [EMAIL PROTECTED] wrote: Suppose that you have these 9 strings:0001,0002,0003,001,002,003,01,02,03. I'd like to sort them as 0001,001,01,0002,002,02,0003,003,03 as Finder. If you use one of the compare methods that allows you to supply options, NSNumericSearch will do what you

Cocoa coding style (was Re: Did I reinvent the wheel?)

2008-05-09 Thread Chris Hanson
On May 9, 2008, at 11:10 AM, Western Botanicals wrote: I would like your opinions about the following framework. http://www.justingiboney.com/code I've looked at this again, and I really, strongly recommend that you stop following Java coding style and instead follow Cocoa coding style

Re: Cocoa coding style (was Re: Did I reinvent the wheel?)

2008-05-09 Thread I. Savant
A few observations about Chris's advice: Points 1 2 are a bit pedantic. In no way is that meant disrespectfully (in fact I respect Chris), but style is a matter of opinion. That opinion is dictated by whatever lead developer of whatever job you hold says it is. If you're lucky, you're

Re: Cocoa coding style (was Re: Did I reinvent the wheel?)

2008-05-09 Thread Michael Watson
And do not override any of the following to implement singletons! - allocWithZone: -copyWithZone: -retain -retainCount -release - autorelease Instead, just add a +sharedWhatever class method.

Re: Cocoa coding style (was Re: Did I reinvent the wheel?)

2008-05-09 Thread Andrew Merenbach
I think that Chris Hanson was referring to the following note at the very end of the article: Situations could arise where you want a singleton instance (created and controlled by the class factory method) but also have the ability to create other instances as needed through allocation and

iPhone SDK and IB plug-in link error

2008-05-09 Thread Wayne Shao
Hi, After I installed SDK, I started to see link errors if my Cocoa application (in Xcode 3.1) uses either QTMovieView or Quartz Composer. e.g, One of the Quartz Composer sample code starts to fail. Another simple app with QTKit failed with error message: Description: Unable to resolve plug-in

Re: Cocoa coding style (was Re: Did I reinvent the wheel?)

2008-05-09 Thread Michael Watson
I'm sure that he was, but without qualification, I thought it might read more like an absolute to some, so I linked to the singleton document . . . without providing any qualification for doing so, myself, sadly. -- m-s On 09 May, 2008, at 23:47, Andrew Merenbach wrote: I think that

Re: Did I reinvent the wheel?

2008-05-09 Thread Kyle Sluder
On Fri, May 9, 2008 at 4:34 PM, Western Botanicals [EMAIL PROTECTED] wrote: That is wierd, because Xcode hasn't given me any warnings. If Xcode could warn you about memory leaks they wouldn't really be the big issue they have been for decades. :) --Kyle Sluder

Re: Cocoa coding style (was Re: Did I reinvent the wheel?)

2008-05-09 Thread Chris Hanson
On May 9, 2008, at 8:32 PM, Michael Watson wrote: And do not override any of the following to implement singletons! - allocWithZone: -copyWithZone: -retain -retainCount -release - autorelease Instead, just add a +sharedWhatever class method.