NSString help!

2008-06-25 Thread Eric Lee
I¹m trying to get a string from one text field and then set the string in another text field. How do you do this? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

NSMutableArray help

2008-06-27 Thread Eric Lee
For practice (and I¹m a beginner...reading Aaron Hillegass¹ book), and I¹m trying to complete one of his challenges in his Third Edition. In that challenge, you are supposed to make a to-do list. My question is, how do you add an object to a NSMutableArray, and then have to array display it? The

Challenge Chapter 6 help!

2008-07-16 Thread Eric Lee
First of all, I'm' new to cocoa, so I'm a beginner that just started. I'm trying to make the To-Do list on Chapter 6 from Aaron's new book, Cocoa Programming for Mac OS X Third Edition. I've made an NSMutableArray, set the data source of the NSTableView to AppController, made an IBACTION an

Chapter 6 Challenge Help!

2008-07-16 Thread Eric Lee
First of all, I'm' new to cocoa, so I'm a beginner that just started. I'm trying to make the To-Do list on Chapter 6 from Aaron's new book, Cocoa Programming for Mac OS X Third Edition. I've made an NSMutableArray, set the data source of the NSTableView to AppController, made an IBACTION an

Array help!

2008-07-17 Thread Eric Lee
I'm doing Challenge from Chapter 6 in the 3rd edition of the Cocoa Programming for mac OS X book, and I've ran into some trouble. While I'm trying to reload data, there's always this warning the says: Warning: 'NSScrollView' may not respond to '-reloadData' (Messages without a matching metho

NSTimer, and NSTimeInterval help?

2008-07-19 Thread Eric Lee
I'm planning on making a stopwatch where the timer fires and then the text field updates by each second. I read online that I should use NSTimeInterval for this, as well as NSDate, and NSTimer. My main question is, how do you use NSTimeInterval? Thanks _

StopWatch Application Help

2008-07-20 Thread Eric Lee
I'm trying to make a stopwatch application, and I'm having trouble getting the Timer to fire, and then having the Text field being updated. Here's the code: AppController.h @interface AppController : NSObject { IBOutlet NSTextField *textField; NSTi

Growl, NSTimer, and Launching Application help!

2008-07-21 Thread Eric Lee
I've written a stopwatch application so that I can get to know NSTimer, NSAlert, how to implement growl, etc. Problem 1: I've fully implemented growl, but how can you implement growl so that you can disable and enable growl by unchecking/checking a checkbox because too many small windows a

NSDate, NSTimer, NSTimeInterval combined question

2008-08-01 Thread Eric Lee
I'm making a StopWatch, and I'm just a beginner, so please be patient with me. I have two tabs. The first tab is a timer, while the second tab is a clock in string format. I have a few problems with both of them. The problem with the timer is that it starts from January 1st, 2001. How can

NSTableView Question

2008-08-02 Thread Eric Lee
I have two table views with two different data, and I have two buttons so that when you press one button, something is added to the first table view, and when you press the second button, some info is added to the second table view. You can't press the 1st one to add it to the 2nd table vie

How to get music list?

2008-08-03 Thread Eric Lee
I have a problem getting the iTunes list, and then making the tableview display the iTunes list. The problem, is actually getting started. Which class should I use? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

NSSplitView question

2008-08-03 Thread Eric Lee
I have two table views with two different data, and I have two buttons so that when you press one button, something is added to the first table view, and when you press the second button, some info is added to the second table view. You can't press the 1st one to add it to the 2nd table vie

NSSplitView Question

2008-08-03 Thread Eric Lee
Sorry, I accidently did something wrong on that message. Here's the one I'm actually asking... How do you make a NSSplitView so that when you click something on one side, the other side is updated. For example, take the mail application. When you click trash, the other side is updated to

Re: How to get music list?

2008-08-04 Thread Eric Lee
On Aug 4, 2008, at 3:51 PM, has wrote: Eric Lee wrote: I have a problem getting the iTunes list, and then making the tableview display the iTunes list. Using objc-appscript [1], here's how to list the name, artist and album of every track in the current playlist: #import &q

Protocol for Table View Trouble

2008-08-05 Thread Eric Lee
I've been having trouble implementing some protocols for table view. I just copied and pasted from my other code into this .m file, changed the variables so that it matched the variables in the .h file, but it has 6 errors, and I can't find out why! Here's the .m file: #import "drawerTable

NSTableView Protocol Help!

2008-09-04 Thread Eric Lee
So, I've written a practice application with NSTableView, and NSMutableArray. I have NSTableView connected to AppController as a dataSource, and I connected all outlets. I have ALREADY defined the protocols needed, but for some reason, this message keeps on appearing in the debugger: ***

How to load a window

2008-09-21 Thread Eric Lee
My question is simple (and probably basic from some of you experts :S). How do you load another window just by pressing a button? On CocoaDevCentral, they say to use NSBundle, but I read on the documentation that you can also use NSWindowController? Thanks for any help!

Bindings Help

2008-09-23 Thread Eric Lee
I'm just beginning to learn bindings, and I havea question. Using bindings, how do you add an object (a textfield's string to be specific) to a NSMutableArray so that a table view can show the object? thanks! ___ Cocoa-dev mailing list (Cocoa-dev@

NSDate/Tokens for Calendar Format String Question

2008-09-24 Thread Eric Lee
I have a problem. Basically, I want to take the time, and set the text field to that time, only the time with 12 Hours. How do you do this? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: NSDate/Tokens for Calendar Format String Question

2008-09-24 Thread Eric Lee
Wow...never saw that...can't believe it Thanks! I'll look into it On Sep 24, 2008, at 10:13 PM, Sean McBride wrote: Eric Lee ([EMAIL PROTECTED]) on 2008-9-24 10:21 PM said: I have a problem. Basically, I want to take the time, and set the text field to that time, only the ti

Bindings Question

2008-09-25 Thread Eric Lee
I have an app that I'm making for practice that has a tableview, and a text field (and many other things, but the ones that are the problem are these two) I just successfully changed my app to use bindings. However, whenever I pressed a button before, something would be added into a NSMut

Re: Bindings Question

2008-09-25 Thread Eric Lee
the table controlled by a NSArrayController. You would bind the button to an action method which would take the value from the text field and pass it to addObject: method of the array controller. --- On Thu, 9/25/08, Eric Lee <[EMAIL PROTECTED]> wrote: From: Eric Lee <[EMAIL

NSTimer help

2008-12-17 Thread Eric Lee
I have an application, and when I exit the window, the timer doesn't stop, so the application freezes. Is there something similar to -(void)awakeFromNib but for stopping a timer when a window closes? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: NSTimer help

2008-12-17 Thread Eric Lee
Begin forwarded message: From: Eric Lee Date: December 17, 2008 3:02:40 PM CST To: Ken Thomases Subject: Re: NSTimer help Thanks...i hadn't realized there was a - (void)windowShouldClose..but now I have another problem. I have implemented an if/else statement so that I can determi

Re: NSTimer help

2008-12-17 Thread Eric Lee
Begin forwarded message: From: Eric Lee Date: December 17, 2008 3:18:41 PM CST To: Volker in Lists Subject: Re: NSTimer help Ah...thanks I had first started out with -(void)windowWillClose..and I guess I just forgot to change it.. Also, instead of [mainWindow windowShouldClose:NO/YES

Re: Run Function At Intervals in Cocoa

2008-10-13 Thread Eric Lee
Check out NSTimer, NSTimeInterval, and NSRunLoop On Oct 13, 2008, at 10:47 AM, Pierce Freeman wrote: Hi everyone. I am fairly new to Cocoa, so I apologize if this is a very basic question (but after searching for awhile I still can't find an answer). Anyway, I am wondering how I can create a

Re: Invalidating UIImageView's image cache

2020-09-22 Thread Eric Lee via Cocoa-dev
> I don't have a good answer, but I think this may be more that UIImage caches > the images, not UIImageView. Maybe you can find something in UIImage's > docs/headers? I think you may be on to something. This WWDC session covers optimiz

Re: Invalidating UIImageView's image cache

2020-09-22 Thread Eric Lee via Cocoa-dev
>> On Sep 22, 2020, at 1:46 PM, Eric Lee via Cocoa-dev >> wrote: >> >>> I don't have a good answer, but I think this may be more that UIImage >>> caches the images, not UIImageView. Maybe you can find something in >>> UIImage's docs/headers?