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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
18 matches
Mail list logo