Re: Help with my stream object please {Solved}
Re: Help with my stream object please {Solved}
- Subject: Re: Help with my stream object please {Solved}
- From: Mark Williams <email@hidden>
- Date: Mon, 17 Oct 2005 08:28:10 -0700
It was in fact the placement of the global variables. I moved them
into the header under the interface line along with the window and
other outlets. I then used methods to set and read the values of the
variables and tada the streams stay separate from one another. I did
have to make sure I used the
performSelectorOnMainThread:withObject:waitUntilDone: to set the
values. This was certainly a learning experience for me. Thanks every
one that replied for the help,
Mark.
On Oct 10, 2005, at 8:44 AM, Mark Williams wrote:
The downloader class is actually about 10 pages long printed so
it's too big to post here.
I have a questions. Ok I did not declare most of my variables in
the header file. I declared them at the top of the class file
before the @implementation line. Is this why they are being shared
between instances?
Mark.
On Oct 10, 2005, at 4:59 AM, Cameron Hayne wrote:
On 10-Oct-05, at 1:23 AM, Mark Williams wrote:
Ok, well I'm at my wits end. No matter what I do my downloader
class seems to share it's variables with all instances of itself.
Does any one here know much A about streams, and B would maybe be
willing to take a look at my downloader to see what I am doing
wrong.
I doubt very much that the problem has anything to do specifically
with streams. It's almost certainly a more fundamental issue -
e.g. you have global variables that are causing the problem, or
some Obj-C object is getting released too early, etc.
As I suggested earlier, carefully proceeding step by step through
your code in the debugger will show you the problem.
But I think I recall that you reported problems in using the
debugger - if so, you should concentrate instead on fixing that
problem first. Try it with a simple "Hello World" problem, then
try some of Apple's sample projects, etc.
And if the code isn't too long, why not just post it here?
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40fornextsoft.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40fornextsoft.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden