DO Chat Example

2008-07-25 Thread Justin Giboney
I am working on a chat program that I could use to explain and demonstrate Distributed Objects (cause I think they are really cool). I have two applications, the server, which is intended to not be seen by the students, and the client, which is intended to be built by the students. It works so far

Re: unsigning NSNumber

2008-07-26 Thread Justin Giboney
Multiply by -1 > float val = [mySignedNumber floatValue]; > > NSNumber* myAbsoluteNumber = [NSNumber numberWithFloat:fabsf( val )]; > > (note NSNumber is immutable so you can't change what it contains to > remove the sign. You can create a new NSNumber with the absolute value > however). > > > hth

Inconsistent Socket Communications

2008-07-28 Thread Justin Giboney
I am trying to set up a client-server chat application for practice. I am getting inconsistent communications. Meaning that it works some of time and doesn't work some of the time during the same application run. Any help will be greatly appreciated Here are the projects: www.justingiboney.com/co

Re: DO Chat Example

2008-07-28 Thread Justin Giboney
inconsistent nature of the program: I start up the server on one machine. I also set up a client on that machine and another one. During the process of sending messages back and forth. Some get sent, and others do not. Thanks > On Jul 26, 2008, at 3:38 AM, Justin Giboney wrote: >> It works so fa

Re: Subclassing NSArrayController?

2008-08-19 Thread Justin Giboney
This is maybe an answer as well as a question. Doesn't the bindings call the init method when creating a class object? Couldn't you just overwrite the init method on your custom class to set any necessary values? Justin Giboney On Aug 19, 2008, at 8:27 AM, Chris Poliquin wrote

Simple NSView Question

2008-08-20 Thread Justin Giboney
ed or not, it doesn't work. What do I have to do to redraw the view with the text field? Thank you, Justin Giboney ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Simple NSView Question

2008-08-20 Thread Justin Giboney
[35666:10b] ( ) So it appears that the text field is getting removed immediately after it gets put in. Why is this? Thanks, Justin Giboney On Aug 20, 2008, at 10:12 AM, Justin Giboney wrote: I think that I am really close to this... but I can't find the next step. I am trying

Re: Simple NSView Question

2008-08-20 Thread Justin Giboney
e text view to the hierarchy that it would remain there every time the view gets redrawn, but apparently it doesn't. How do I keep it there? Thanks, Justin Giboney ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Simple NSView Question

2008-08-20 Thread Justin Giboney
Thanks for the help. For some reason I pulled a custom view onto the screen and also pulled an object over to the file (instantiating an object). I connected the outlet to that instead of the view in the window. I don't know what I was thinking. Works well now. Thanks Justin Gibone

Cocoa Database Connection

2008-03-21 Thread Justin Giboney
8.3 installed, running 10.5 on the host that will talk to the DB, and multiple client computers running 10.4 or 10.5 What would you use to create an enterprise level application? Is there any tutorials that you would use to create the connections to the database? Thank you, Justin Giboney

Re: Cocoa Database Connection

2008-03-21 Thread Justin Giboney
for it and I can't find it. Is there something that I should have installed besides PostgreSQL 8.3.0? I have seen something about doxygen, but I don't know what that is. Do I need it? Thank you, Justin Giboney On Mar 21, 2008, at 4:43 PM, A.M. wrote: On Mar 21, 2008, at 6:33

Re: Cocoa Database Connection

2008-03-24 Thread Justin Giboney
Putting this line -L/usr/local/pgsql/lib -lpq in my Other Linker Flags, made the error go away, thanks Tony, thanks everyone else who was working with me Justin Giboney On Mar 24, 2008, at 2:57 PM, Tony Becker wrote: Seems like -L/usr/local/pgsql/lib -lqp or -L/usr/local/pgsql/lib -lqp

Static in Subclasses

2008-03-27 Thread Justin Giboney
2 after 1 = 0 2008-03-27 14:34:31.048 TimeKeeper[790:10b] 1 after 2 = 1 2008-03-27 14:34:31.049 TimeKeeper[790:10b] 2 after 2 = 1 Thank you, Justin Giboney ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

libpq prepared statement

2008-03-31 Thread Justin Giboney
have an example I could look at that would be great. Thank you, Justin Giboney p.s. why is it that Apple has no documentation on having Cocoa work with Databases? Try typing in "mysql" or "postgresql" in the search box of this page http://developer.apple.co

Vended Object Setters

2008-04-17 Thread Justin Giboney
t. Thank you, Justin Giboney ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscrip

Re: Vended Object Setters

2008-04-17 Thread Justin Giboney
bycopy worked, thank you. Does this mean though that I need to duplicate all of methods, with one set for internal commands and one for remote commands? Thank Justin Giboney ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Vended Object Setters

2008-04-17 Thread Justin Giboney
Actually that didn't work... it appears to be setting it as I go through the set method, but when I go to get it it is almost as if it is calling an object in a different memory set. I set up the protocol, and I am using bycopy. Thanks, Justin Giboney On Apr 17, 2008, at 9:25 AM

GUI Time Field

2008-04-22 Thread Justin Giboney
Thank you Justin Giboney #import "Controller.h" @implementation Controller - (id) init { [super init]; [NSThread detachNewThreadSelector:@selector(runClock) toTarget: self withObject: nil]; return self; } - (void) setDateTime { NSAutoreleasePool *tempPool =

Re: GUI Time Field

2008-04-22 Thread Justin Giboney
Thank you for response, I hope I have improved my code. I am binding my text field to the variable "theDateTime." I know this works because if I uncomment the commented line, I can see the date and time. The problem is that the UI isn't updating. Thanks again. Justin Gi