Re: 10.4 v. 10.5 SDK question

2008-10-18 Thread Steve Cronin
Ken; Thanks for the quick and helpful response! You seem to have assumed that you can only compile against the 10.4 SDK by going back to Xcode 2.5 (and thus using an earlier compiler). No I brought the application back to the 10.5 machine and have left it compiling against the 10.4 SDK

Re: 10.4 v. 10.5 SDK question

2008-10-18 Thread Ken Thomases
On Oct 18, 2008, at 1:36 AM, Steve Cronin wrote: ...(bug fixes) which are only enabled for binaries linked against the 10.5 SDK. This is both a good and bad thing. It means your program works consistently on Tiger and Leopard, which makes testing easier. But it might behave consistently

WIndow from external framework not working

2008-10-18 Thread Samir Patel
I have a simple external Cocoa framework I have built that loads and displays a single nib-based window from a nib file contained in the framework. I add the framework to a separate application. Everything works fine - the window loads and appears on screen and all the outlets are valid. But

Re: Delete myDriver.kext files from normal user.

2008-10-18 Thread Jacques Petit
It's a security flaw. Assuming you had an error in your code that allowed that allowed the string to be exploited, the system call would allow a person to do anything in the computer, subject to the permissions your process has. On 17-Oct-08, at 5:17 PM, Jonathon Kuo wrote: On Oct 17,

Re: Screen not redrawing

2008-10-18 Thread Graham Cox
On 18 Oct 2008, at 2:50 pm, Russ wrote: When I do this programmatically after creating the main window's NSView, it scarfs up the bounding box of the succeeding views, not sure why that is. This is another common symptom of using 'rect' as the view's bounds. Are you *sure* 100%

Re: Screen not redrawing

2008-10-18 Thread Jean-Daniel Dupas
Le 18 oct. 08 à 05:50, Russ a écrit : Check to make sure [window isFlushWindowDisabled] is NO and [window isAutodisplay] is YES. Yes, both OK. Also, try dropping a standard control (e.g. a button) in and see if it redraws to the pressed state when you press it. When I do this

Re: Objective 2.0 properties

2008-10-18 Thread Jim Correia
On Oct 17, 2008, at 2:29 PM, Jim Correia wrote: For object types, in a non-garbage collected application (traditional retain/release style memory management) you never want to use assign. It is the equivalent of hand writing an accessor that does a pointer assignment (with no additional

Re: 10.4 v. 10.5 SDK question

2008-10-18 Thread Steve Cronin
Ken; Once again, thanks for the exemplary response! (You are a great resource for the Cocoa community!) So... while yes, the 10.5 SDK does have bug fixes, using it and deploying to 10.4 potentially bifurcates the product into different behaviors. (It is really tough to determine where and

What is A class which must be subclassed ?

2008-10-18 Thread Jerry Krinock
I have written a class which is missing important behaviors that must be provided by subclasses. I create one like this: + (id)fooWithBar:(Bar*)bar_ { // A Bar instance knows which subclass of Foo is appropriate for it. // To find out, send it a -fooClass message. id

Re: What is A class which must be subclassed ?

2008-10-18 Thread Andrew Merenbach
On Oct 18, 2008, at 7:43 AM, Jerry Krinock wrote: I have written a class which is missing important behaviors that must be provided by subclasses. I create one like this: + (id)fooWithBar:(Bar*)bar_ { // A Bar instance knows which subclass of Foo is appropriate for it. // To find

Re: What is A class which must be subclassed ?

2008-10-18 Thread Andy Lee
Foo might qualify as a class cluster, but personally I don't think it needs to conform to a named pattern. It's nice when you can borrow from previously thought-out patterns, but not necessary. Would it make sense to reorganize so the instantiation is done by the Bar class? -

Re: table bindings, value transformer per row?

2008-10-18 Thread [EMAIL PROTECTED]
thanx for this. i've been using the willDisplayCell: delegate method to swap formatters as necessary, but i'd never thought of using it to swap the cell's value! i will add this to my bag o' tricks for possible future use. for my current situation, i removed the use of the value transformer

NSAlert?

2008-10-18 Thread Pierce Freeman
Hi everyone. I have been attempting to create a NSAlert popup and get the result (so it can run an if statement) for the last few hours, but I still can't get it to work. My current code is below, if anyone wants to have a look see... If anyone could point me in the right direction, it would be

Re: NSAlert?

2008-10-18 Thread Jason Coco
On Oct 18, 2008, at 14:35 , Pierce Freeman wrote: Hi everyone. I have been attempting to create a NSAlert popup and get the result (so it can run an if statement) for the last few hours, but I still can't get it to work. My current code is below, if anyone wants to have a look see...

Re: NSAlert?

2008-10-18 Thread Pierce Freeman
Thanks for your help. However, Xcode gives me this warning when I build: NSAlert' may not respond to '+alertWithMessageText:defaultButton:aleternateButton:otherButton:informativ eTextWithFormat:' Sincerely, Pierce F. On 10/18/08 12:26 PM, Jason Coco [EMAIL PROTECTED] wrote: On Oct 18,

Re: NSAlert?

2008-10-18 Thread Jason Coco
On Oct 18, 2008, at 15:43 , Pierce Freeman wrote: Thanks for your help. However, Xcode gives me this warning when I build: NSAlert' may not respond to '+ alertWithMessageText:defaultButton:aleternateButton:otherButton:informativ eTextWithFormat:' alternateButton is spelled wrong ;) J

Re: NSAlert?

2008-10-18 Thread Pierce Freeman
Wow, I am completely out of it today. ;) Thanks for your help, Pierce F. On 10/18/08 12:46 PM, Jason Coco [EMAIL PROTECTED] wrote: On Oct 18, 2008, at 15:43 , Pierce Freeman wrote: Thanks for your help. However, Xcode gives me this warning when I build: NSAlert' may not respond to

Passing Variables to AppleScript

2008-10-18 Thread Pierce Freeman
Hi everyone. I am attempting to create a little application that will take an application name from the user, and then close it for them. I am attempting do this by getting the string in Cocoa, then passing this to AppleScript... But I don't know if Cocoa can pass variables to AppleScript. I

Resize an image view

2008-10-18 Thread Benjamin Dobson
Hi again, I need to change the size of an NSImageView – specifically, the width. After trying the only thing I knew (setFrame:display:) and having that fail, I ask: what do I need to do?___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Resize an image view

2008-10-18 Thread Graham Cox
On 19 Oct 2008, at 9:03 am, Benjamin Dobson wrote: Hi again, I need to change the size of an NSImageView – specifically, the width. After trying the only thing I knew (setFrame:display:) and having that fail, I ask: what do I need to do? -setFrame:display: is a NSWindow method.

Designing reports in Cocoa apps

2008-10-18 Thread Devraj Mukherjee
Hi All, Wondering if any one has ideas on writing reporting features for Cocoa apps? We are desinging a billing system and have the need for developing summary reports (printable). Thanks. -- I never look back darling, it distracts from the now, Edna Mode (The Incredibles)

Re: Designing reports in Cocoa apps

2008-10-18 Thread Kyle Sluder
On Sat, Oct 18, 2008 at 7:23 PM, Devraj Mukherjee [EMAIL PROTECTED] wrote: Wondering if any one has ideas on writing reporting features for Cocoa apps? Well, only you can determine how to collect the data you need for the report. Once you've done that, some developers use a WebView. This has a

Re: Passing Variables to AppleScript

2008-10-18 Thread Kyle Sluder
On Sat, Oct 18, 2008 at 4:05 PM, Pierce Freeman [EMAIL PROTECTED] wrote: I am attempting to create a little application that will take an application name from the user, and then close it for them. I am attempting do this by getting the string in Cocoa, then passing this to AppleScript... But

Re: WIndow from external framework not working

2008-10-18 Thread Michael Ash
On Fri, Oct 17, 2008 at 5:07 PM, Samir Patel [EMAIL PROTECTED] wrote: I have a simple external Cocoa framework I have built that loads and displays a single nib-based window from a nib file contained in the framework. I add the framework to a separate application. Everything works fine - the

Re: 10.4 v. 10.5 SDK question

2008-10-18 Thread Michael Ash
On Sat, Oct 18, 2008 at 9:55 AM, Steve Cronin [EMAIL PROTECTED] wrote: Since my goal was to deploy to 10.4 all along, by using the 10.4 SDK, the app will behave the same on both 10.4 and 10.5 (and 10.6) -- simpler from a support perspective. In some cases the behavior might be consistently

Re: What is A class which must be subclassed ?

2008-10-18 Thread Michael Ash
On Sat, Oct 18, 2008 at 10:43 AM, Jerry Krinock [EMAIL PROTECTED] wrote: I have written a class which is missing important behaviors that must be provided by subclasses. I create one like this: + (id)fooWithBar:(Bar*)bar_ { // A Bar instance knows which subclass of Foo is appropriate for

Application quits when clicking Ok button is NSBeginCriticalAlertSheet in Tiger OS

2008-10-18 Thread Lance Kwan
Application quits when clicking Ok button is NSBeginCriticalAlertSheet in Tiger OS I am in a admin account when testing the issue. Please see ISSUE 1 and ISSUE 2 ISSUE 1: Ive created a User Interface to add a print queue using lpadmin. In my User Interface, i set my authorization not as

Updating a Static Text and Slider From High Priority Thread While Resizing a Window

2008-10-18 Thread Peter Zegelin
Hi, Still fairly new to Cocoa here. I have a high priority thread that that for the moment just calls back as often as possible to a method that updates a static text object with the current time. A slider is also updated to a new value. Its a bit like a stop watch with a position

Application quit in NSBeginAlertSheet

2008-10-18 Thread Lance Kwan
I am in a admin account when testing the issue. Ive created a User Interface to add a print queue using lpadmin. In my User Interface, i set my authorization not as admin. before my lpa dmin was called, an authentication dialog asking for user name and password appears which is expected since

Re: Updating a Static Text and Slider From High Priority Thread While Resizing a Window

2008-10-18 Thread Andrew Merenbach
On Oct 18, 2008, at 4:23 AM, Peter Zegelin wrote: Hi, Still fairly new to Cocoa here. I have a high priority thread that that for the moment just calls back as often as possible to a method that updates a static text object with the current time. A slider is also updated to a new value.

Re: Updating a Static Text and Slider From High Priority Thread While Resizing a Window

2008-10-18 Thread Andrew Merenbach
On Oct 18, 2008, at 7:27 PM, Andrew Merenbach wrote: On Oct 18, 2008, at 4:23 AM, Peter Zegelin wrote: Hi, Still fairly new to Cocoa here. I have a high priority thread that that for the moment just calls back as often as possible to a method that updates a static text object with the

Views, frames, and bounds

2008-10-18 Thread DKJ
I am unable to understand the relation between the frame and the bounds of an NSView. I've read the documentation in the View Programming Guide, and also played around with them myself in a practice project. In the latter, I tried drawing their rectangles in different colours, but couldn't

Re: Object is not reachable from this managed object context

2008-10-18 Thread Lakshmi Vyasarajan
It looks to me like you are sharing one MOC between two threads (the web service update worker thread and the main thread). You need two MOC's. Write from the worker thread to the worker thread's MOC, then tell the main thread to refresh. I do have two MOC's. Would be kinda weird to get

Re: What is A class which must be subclassed ?

2008-10-18 Thread Jerry Krinock
Thanks for the replies. Regarding making it a protocol, I don't want to do that because Foo is really a class which implements many methods that are common to its subclasses. On 2008 Oct, 18, at 8:53, Andy Lee wrote: Would it make sense to reorganize so the instantiation is done by the

Re: NSTextfield in tableColumn changing color slow

2008-10-18 Thread Steven Hamilton
On 16/10/2008, at 11:59 PM, Corbin Dunn wrote: Hi Steven, On Oct 16, 2008, at 2:03 AM, Steven Hamilton wrote: Hi Folks, I have a core data bound tableColumn that displays a currency balance. My NSManagedObject is a custom class that calculates the balance from a @sum of related

Re: Views, frames, and bounds

2008-10-18 Thread Jamie Hardt
On Oct 18, 2008, at 8:04 PM, DKJ wrote: I am unable to understand the relation between the frame and the bounds of an NSView. I've read the documentation in the View Programming Guide, and also played around with them myself in a practice project. In the latter, I tried drawing their