RE: NSMutableString question

2008-09-17 Thread Matthew Youney
Roland, You really need to start here: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concept s/ObjectOwnership.html#//apple_ref/doc/uid/2043 For me, this was the most complicated part of Cocoa and most different from other languages. I recommend reading it, printing it,

RE: MySQL?

2008-09-15 Thread Matthew Youney
Jason, Check out the CocoaMYSQL "bundled framework", aka MCPKit. It is quite easy to use, and there is an example app (cocoamysql). My personal feelings are that we should all be using ODBC to connect to these DBs, however there is ODBC support under cocoa is presently pretty dicey, so we are stu

RE: ODBCKit problems with MySQL DB [SOLVED]

2008-08-29 Thread Matthew Youney
Well, solved kinda... I have worked around the inability to use ODBC to access my MySQL database by using the MCPkit framework (AKA MySQLCocoa). This is a very complete library that works well. It does however have the obvious limitation of being "MySQL only". I would prefer to be using ODBC, and

RE: Threading problem using AsyncSocket

2008-08-15 Thread Matthew Youney
nd the delegate method -[theDelegate onSocket:self wantsRunLoopForNewSocket:newSocket]. 5. Use CFRunLoopContainsSource to check that your socket has been successfully added to the correct run loop. Good luck! Jonathan FROM : Matthew Youney DATE : Fri Aug 15 00:45:34 2008 Jonathan, The reason I

RE: Threading problem using AsyncSocket

2008-08-15 Thread Matthew Youney
Jonathan, Thank you sooo much for your assistance. Here's what ended up working for me: 1. I did update my AsyncSocket class as suggested. Thanks. 2. I determined that my runloop was not functioning as expected using your suggestions. As you said, there is a lot of information here, a

RE: Threading problem using AsyncSocket (Matthew Youney)

2008-08-14 Thread Matthew Youney
Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 14, 2008 5:04 PM To: cocoa-dev@lists.apple.com Subject: Re: Threading problem using AsyncSocket (Matthew Youney) I don't know about your threading problem but surely the whole point of AsyncSocket is the Async bit. It is designed to attac

RE: Threading problem using AsyncSocket

2008-08-14 Thread Matthew Youney
Jack, Sorry for the confusion, my e-mail program (outlook) capitalized the R. It is indedd rLoop in my code. Matt -Original Message- From: Jack Carbaugh [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 4:30 PM To: Matthew Youney Subject: Re: Threading problem using AsyncSocket

RE: Threading problem using AsyncSocket

2008-08-14 Thread Matthew Youney
thread. 2008/8/14 Matthew Youney <[EMAIL PROTECTED]>: > > Hello list, > This is my first attempt at threading with Cocoa, and I am having difficulty > with my classes that use AsyncSocket. I am using DetachNewThreadSelector: > to detach my 'worker' thread, and I

Threading problem using AsyncSocket

2008-08-14 Thread Matthew Youney
Hello list, This is my first attempt at threading with Cocoa, and I am having difficulty with my classes that use AsyncSocket. I am using DetachNewThreadSelector: to detach my ‘worker’ thread, and I am instantiating my class that uses AsyncSocket from within this thread. The problem is that the

RE: Newbie question: Timers

2008-07-01 Thread Matthew Youney
Thanks, I will have to investigate further about how exactly to implement this. Again, thanks for your help, Matt -Original Message- From: Daniel Richman [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 5:46 PM To: Matthew Youney Cc: Cocoa Subject: Re: Newbie question: Timers Use

Newbie question: Timers

2008-06-30 Thread Matthew Youney
Hello everyone: I have another question that is based on my Microsoft background (yes I am ashamed). In the VS environment, there is a “timer” control that can be dropped onto a form, and will generate timer events every X milliseconds. How would I impliment similar functionality in Cocoa, or wha

RE: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Matthew Youney
Alfke [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 4:35 PM To: Matthew Youney Cc: Graham Cox; Cocoa Subject: Re: Newbie interface questions - multiple "modal" windows On 17 Jun '08, at 7:30 AM, Matthew Youney wrote: > This certainly can be easily done using a tab control. T

RE: Newbie interface questions - multiple "modal" windows

2008-06-17 Thread Matthew Youney
my rudimentary questions. Thanks to all, Matt -Original Message- From: Graham Cox [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 9:36 PM To: Jens Alfke Cc: Matthew Youney; Cocoa Subject: Re: Newbie interface questions - multiple "modal" windows On 17 Jun 2008, at 10:39 am

Newbie interface questions - multiple "modal" windows

2008-06-16 Thread Matthew Youney
I am creating an application that requires multiple “modal” windows. There is a “main” window, and there are multiple other windows that can be displayed from the main window (using a toolbar, buttons, etc.). These “other” windows need to be modal, that is these windows must receive all user inpu

RE: fundamental question: how do I call controller methods from other classes?

2008-05-22 Thread Matthew Youney
A! This is quite interesting. Have I been reading the wrong books, asking the wrong questions or both? This can be quite a powerfull tool! Again, thanks, Matt On 21 May '08, at 8:15 PM, Matthew Youney wrote: > I just have no mechanism of sending messages > to my "c

RE: fundamental question: how do I call controller methods from other classes?

2008-05-22 Thread Matthew Youney
Hal, The controller instance is created by the IB. All I wanted to do is to be able to call accessor methods on the controller (from other classes) to manipulate the GUI (encapsulate the GUI stuff). I thought that this would be a normal thing to do, but I guess not. I kinda think wiring sockets a

RE: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Matthew Youney
10:06 PM To: [EMAIL PROTECTED] Cc: cocoa-dev@lists.apple.com Subject: Re: fundamental question: how do I call controller methods from other classes? On 21 May '08, at 5:07 PM, Matthew Youney wrote: > The name of the controller object in interface builder is > myPOSsocketCon

fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Matthew Youney
This is a very basic question: How do I call controller methods from other classes? Or even a more basic question: What is the instance name of the controller object instantiated by Interface Builder? I am am new to Cocoa, however a career programmer, and I am feeling quite dumn here. I am obvio