Re: Use NSDocument as a variable of another NSDocument

2010-01-19 Thread Jarod Wen
Got it! Thanks guys for all your suggestions! On Jan 19, 2010, at 2:51 AM, Kai BrĂ¼ning wrote: > > On 18.1.2010, at 23:17, Jarod Wen wrote: > >> Good points guys! In my application the table data depends on the movie it >> comes from. And also, there will be several tabl

Re: Use NSDocument as a variable of another NSDocument

2010-01-18 Thread Jarod Wen
controllers will be better? Thanks! On Jan 18, 2010, at 1:59 PM, Jeffrey Oleander wrote: >> At Mon, 2010/01/18 15:19, Quincey Morris wrote: >> On 2010 Jan 18, at 10:48, Jarod Wen wrote: >>> Is it a proper design to use a NSDocument as a >>> variable of another

Use NSDocument as a variable of another NSDocument

2010-01-18 Thread Jarod Wen
Hi Jedis, Is it a proper design to use a NSDocument as a variable of another NSDocument? I am now working on an application which generates some information from a movie. The information generated will be showed as a table, and the information in the table can be saved/opened. Multiple types o

Re: [Moderator] Re: How to control the order of enumerating on a NSDictionary

2008-08-25 Thread JArod Wen
this issue. On Aug 25, 2008, at 11:49 AM, Scott Anguish wrote: I think this situation has had enough airtime, and I prefer to handle the moderator stuff in private email. Let's stick to discussing Cocoa & its environs. Thanks Scott [Moderator] ------- JArod Wen

Behaviors with discrimination from the michael-amorose.com guy

2008-08-25 Thread JArod Wen
ob; I really appreciate it. Best, Begin forwarded message: From: Scott Anguish <[EMAIL PROTECTED]> Date: August 25, 2008 3:51:16 AM EDT To: JArod Wen <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: How to control the order of enumerating on a NSDictionary JArod, can you p

Re: How to control the order of enumerating on a NSDictionary

2008-08-24 Thread JArod Wen
d get some other job like being a noodle shop owner or something. LOL. JArod Wen wrote: Hi Jedis, I wrote codes to add column information into a NSDictionary and then added each of them into a NSTableView as column. I got the key- value pairs in NSDictionary as following: &qu

Re: How to control the order of enumerating on a NSDictionary

2008-08-24 Thread JArod Wen
Thanks man, I got your idea. On Aug 24, 2008, at 7:43 PM, Graham Cox wrote: On 25 Aug 2008, at 9:36 am, JArod Wen wrote: It should be the problem when enumerating the dictionary, right? How can I control the order of enumerating? You can't if you enumerate the keys directly - the

How to control the order of enumerating on a NSDictionary

2008-08-24 Thread JArod Wen
os, dis, ang, shp. It should be the problem when enumerating the dictionary, right? How can I control the order of enumerating? Thanks in advance! --- JArod Wen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Odd error when opening a nib file

2008-07-29 Thread JArod Wen
something related to NSApplication. On Jul 29, 2008, at 1:24 PM, Kyle Sluder wrote: On Tue, Jul 29, 2008 at 1:12 PM, JArod Wen <[EMAIL PROTECTED]> wrote: Cannot create int from object of class NSApplication Did you mistakenly create an NSApplication in the nib? --Kyle

Odd error when opening a nib file

2008-07-29 Thread JArod Wen
lso NSCarbonMenuImpl is used when initializing the pop-up menu(reference: http://www.cocoadev.com/index.pl?NSCarbonMenuImpl) , is there anyway I can fix this error? Thanks in advance! --- JArod Wen ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Problem when archiving data: [_NSViewGState encodeWithCoder:] unrecognized selector

2008-07-25 Thread JArod Wen
all of their data when written to a non-keyed archive. Every time you encode something new in an encodeWithCoder: method to a non-keyed archiver, it breaks the ability of older versions of the class to read the archiver. -Ken On Fri, Jul 25, 2008 at 6:59 PM, Kyle Sluder <[EMAIL PROTECTED]> wro

Problem when archiving data: [_NSViewGState encodeWithCoder:] unrecognized selector

2008-07-25 Thread JArod Wen
lasm[2353:813] *** -[_NSViewGState encodeWithCoder:]: unrecognized selector sent to instance 0x7752480 Since I didn't find any object in the data to be written has the type of NSViewGState, I am really confused about this error. Anyone can give me any suggestions? Thanks in advance! --

Re: Problem on clearing points and paths on a NSView

2008-07-23 Thread JArod Wen
y returning YES from isOpaque, you should not need to explicitly fill your bounds in drawRect:. -Ken Cocoa Frameworks --- JArod Wen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Problem on clearing points and paths on a NSView

2008-07-22 Thread JArod Wen
but still cannot be removed... Thanks for any suggestions! On Jul 22, 2008, at 9:10 PM, Jens Alfke wrote: On 22 Jul '08, at 3:03 PM, JArod Wen wrote: I met a problem on clearing points and paths on a customized NSView. I set four NSBezierPath for drawing: pathForPositio

Problem on clearing points and paths on a NSView

2008-07-22 Thread JArod Wen
these lines are executed, points and paths are still there on the view. Is there any way to clear them? Thanks in advance! --- JArod Wen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
, 2008, at 1:45 PM, j o a r wrote: On Jul 15, 2008, at 10:36 AM, JArod Wen wrote: The dataSource of TableView is connected to tableSource. There is a TableController containing two IBOutlets to both tableSource and dataTable. Then dataTable.dataSource is connected to tableSource in IB

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
em are connected properly in runtime. On Jul 15, 2008, at 1:45 PM, j o a r wrote: On Jul 15, 2008, at 10:36 AM, JArod Wen wrote: The dataSource of TableView is connected to tableSource. There is a TableController containing two IBOutlets to both tableSource and dataTable

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
, at 10:17 AM, JArod Wen wrote: Thanks for fast reply! Just as Jens said, I have checked the table and I am sure that it is not nil: Printing description of dataTable: (gdb) continue You should probably also verify that the NSTableView knows where to get data from - Using the "dataS

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
008, at 9:32 AM, JArod Wen wrote: You are right. I found that the - tableView:objectValueForTableColumn:row: has never been called... Any way to fix this problem? On Jul 13, 2008, at 1:43 AM, Jens Alfke wrote: On 12 Jul '08, at 10:35 PM, JArod Wen wrote: The problem is that after I up

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
You are right. I found that the - tableView:objectValueForTableColumn:row: has never been called... Any way to fix this problem? On Jul 13, 2008, at 1:43 AM, Jens Alfke wrote: On 12 Jul '08, at 10:35 PM, JArod Wen wrote: The problem is that after I update the data source, whi

Problem on reload data source of a table view

2008-07-12 Thread JArod Wen
ween dataTable and tableSource, and no problem found there. Any suggestions on this problem? Thanks in advance! --- JArod Wen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: Re: How to make the FileOwner of a nib file accessible globally in whole project (JArod Wen)

2008-07-12 Thread JArod Wen
TED] wrote: -- Message: 13 Date: Tue, 1 Jul 2008 14:48:15 -0400 From: JArod Wen <[EMAIL PROTECTED]> Subject: Re: How to make the FileOwner of a nib file accessible globally in whole project (JArod Wen) To: cocoa-dev@lists.apple.com Message-ID: &

Re: How to make the FileOwner of a nib file accessible globally in whole project (was Re: Cocoa-dev Digest, Vol 5, Issue 1168)

2008-07-01 Thread JArod Wen
Thanks for your fast reply. On Jul 1, 2008, at 2:36 PM, Andy Lee wrote: On Jul 1, 2008, at 2:07 PM, JArod Wen wrote: I need to make some clearance on this problem: the biggest issue is that MovieDocument is instantiated by IB, since it is the FileOwner of the MovieDocument.nib. So the

Re: How to make the FileOwner of a nib file accessible globally in whole project (JArod Wen)

2008-07-01 Thread JArod Wen
Thanks in advance! ------- JArod Wen ------- JArod Wen ___ 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

Re: How to make the FileOwner of a nib file accessible globally in whole project

2008-07-01 Thread JArod Wen
PROTECTED] wrote: Message: 8 Date: Tue, 1 Jul 2008 12:05:43 -0400 From: JArod Wen <[EMAIL PROTECTED]> Subject: How to make the FileOwner of a nib file accessible globally in whole project To: cocoa-dev@lists.apple.com Message-ID: <[EMAIL PROTECTED]> Content-Type

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

2008-07-01 Thread JArod Wen
nt will be created once. So any suggestion on this problem? Thanks in advance! ------- JArod Wen ------- JArod Wen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

How to make the FileOwner of a nib file accessible globally in whole project

2008-07-01 Thread JArod Wen
arly wrong since when the header file is imported, the instant will be created once. So any suggestion on this problem? Thanks in advance! ------- JArod Wen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Newbie question: instantiate a class in its header file OR in IB

2008-06-25 Thread JArod Wen
create the instant using the initialization method. Is this correct? On Jun 25, 2008, at 1:28 AM, Andrew Farmer wrote: On 24 Jun 08, at 20:34, JArod Wen wrote: I am a cocoa newbie from Java. Recently I found an example code in which the instance of a class is defined in its own class'

Newbie question: instantiate a class in its header file OR in IB

2008-06-24 Thread JArod Wen
structions! ------- JArod Wen ___ 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