How to update table while in a method

2009-11-12 Thread Ashley Perrien
I have an application that has a table of various internet resources and information on them. What I would like to be able to do is: for (netResource *resource in anArrayOfResources) { [resource updateInfo]; [resultsTable reloadData]; } But it seems that the table refuses to

Reading NSInputStream

2009-10-21 Thread Ashley Perrien
available, getting a buffer and reading into it? I've searched the archives and google, copy and pasted the code and it still returns errors or gets results that don't make sense (no bytes available but they read in fine). Ashley Perrien P.S. I know there are other mail frameworks out

Re: Reading NSInputStream

2009-10-21 Thread Ashley Perrien
After initiating a connection (getStreamsToHost) I don't get an event that the input stream has bytes available, if I check it, it returns NO but if I go ahead and read it anyway, I get the usual banner. It sounds like you didn't call -scheduleInRunLoop:forMode: ? Covered. See below for

Re: Cocoa-dev Digest, Vol 6, Issue 1522

2009-10-21 Thread Ashley Perrien
Really can't tell, because you're only posting isolated code fragments, instead of complete and self-contained fragments that show the entire context. So here's the unadulterated method I'm trying to get working (not very useful at this point but if I can get the reading right):

Need simple port scan

2009-09-07 Thread Ashley Perrien
specifically should I be checking into or does anyone happen to have a snippet of code that does the above? Ashley Perrien Random Quote of the day: No prizes for predicting rain. Prizes only awarded for building arks. ___ Cocoa-dev mailing list (Cocoa

Re: Need simple port scan

2009-09-07 Thread Ashley Perrien
I'm very new to networking via cocoa and need to develop a small port scanner application. The core of it is very simple, is address 1.2.3.4 listening on port X. Does it have to be a Cocoa API? You should be able to use the Unix BSD sockets API, which IMHO if you're looking for short and

Binding to table with variable number of columns

2009-03-07 Thread Ashley Perrien
) simplify sorting. Ashley Perrien Random Quote of the day: We're not surrounded, we're in a target-rich environment! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Simple way to traverse 2D array?

2009-02-23 Thread Ashley Perrien
how many arrays the primary array has, I can't think of a way to nest the loops if I don't know how deeply to nest them. Any suggestions on the best way to approach something like this? Ashley Perrien ___ Cocoa-dev mailing list (Cocoa-dev

Getting pixel color from NSView

2009-01-25 Thread Ashley Perrien
Is there a way to get the color of a pixel or area of an NSView during the drawRect method? I'll be tiling the view with a grid of random colors but each tile is based on the colors around it. I'd prefer to call something along the lines of: NSColor *aColor = [myView colorAtPoint:

Accessing interface elements (iPhone vs Mac)

2009-01-20 Thread Ashley Perrien
should alloc and then later release things for tighter memory control. That makes sense. Is there something similar with the above, is there a back-end reason to property, synthesize and release things that were created in IB? Ashley Perrien Random Quote of the day: One way to get high blood

Best way to get messages OUT

2008-12-26 Thread Ashley Perrien
? Other? Scenario 2: iPhone app (extremely simple, one view) again with data and a graph of that data. when interacting with the UIView, how do I tell the parent view that something needs changing? Basically, what's the best way for an ivar object to communicate with it's parent? Ashley

Working with mathematical errors

2008-07-27 Thread Ashley Perrien
got some division involved, not sure exactly if that would work. I guess I could just check the values myself (if point1 is +- .001 of point2) but that seems kinda hackish. What's the most common way of dealing with these types of problems? Ashley Perrien

NSView colors

2008-07-25 Thread Ashley Perrien
, blueColor, etc. I've also tried one or two of the other ways to specify values and have had the same problem. Any ideas on what's going on? Ashley Perrien ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Drawer examples?

2008-07-19 Thread Ashley Perrien
a document based app if that matters. Ashley Perrien ___ 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

Clock-like looping

2008-06-29 Thread Ashley Perrien
Is there a fairly simple way of setting up a clock style looping of numbers? Where 1-12 act normally but 11 + 2 would return 1 and so on. I'm not doing time and would be dealing with ranges from 1 to 96, 77, 120, that type of range. Would also need to be able to handle partial numbers

ObjectController and ArrayController tutorials

2008-06-14 Thread Ashley Perrien
Does anyone have any tips on where to get a tutorial or walkthrough explaining controller objects? I've read and done the example in Hillegass' book at least 5 times and read over the Apple docs about bindings and still have a VERY tenuous grasp as to what they (NSObjectController) are,

Re: Cocoa-dev Digest, Vol 5, Issue 1040

2008-06-12 Thread Ashley Perrien
In the original example, myNum was being passed as a argument rather than having a message to sent to it and itÂ’s often not safe to pass nil objects as arguments. Hmmm... well, what's the function it's passed to going to do with it, other than call a method on it? If it's doing anything else,

argument checks

2008-06-11 Thread Ashley Perrien
into the error message condition. Any suggestions? Ashley Perrien ___ 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

Hillegass book memory question

2008-06-02 Thread Ashley Perrien
and an array is retained and neither are released. I know that for the very small and simple apps here, it doesn't really matter but how and where would you go about releasing those objects? If they shouldn't be released, why not? Thanks for any enlightenment. Ashley Perrien

Xcode - IB problems

2008-06-01 Thread Ashley Perrien
create all the actions and outlets in IB and let it create the class? Ashley Perrien Random Quote of the day: If you understand what you're doing, you're not learning anything. -Abraham Lincoln ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Xcode - IB problems

2008-06-01 Thread Ashley Perrien
Usually, when I have the trouble described by the OP, I have some typos in my .h files for the classes. Which was the problem here, only noticed it a few minutes after sending the email. I think I'm just forgetting some basic syntax peculiarities. Sorry for the clutter. Ashley Perrien