Re: -dataWithPDFInsideRect: unsafe within -drawRect:?

2008-08-30 Thread Joel Norvell
Hi Graham, You might try saving and restoring graphics states for the pertinent NSGraphicsContexts, although this wouldn't seem to explain why your code broke. Sincerely, Joel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

I know this is a Studio question .. but I really need some help

2008-08-30 Thread John Love
The problem is XCode 3.1 and AppleScript Studio, in particular the Studio's Editor. None of the following occurs with XCode 3.0, only 3.1. I did momentarily regress to 3.0; however, this messes up all my Cocoa Obj-C code because some of the libraries have changed. 1) XCode 3.1 crashes

Re: I know this is a Studio question .. but I really need some help

2008-08-30 Thread I. Savant
On Aug 30, 2008, at 11:17 AM, John Love wrote: The problem is XCode 3.1 and AppleScript Studio, in particular the Studio's Editor. None of the following occurs with XCode 3.0, only 3.1. I did momentarily regress to 3.0; however, this messes up all my Cocoa Obj- C code because some of the

Re: Newb Question re NSUserDefaults and Ints

2008-08-30 Thread Brad Gibbs
Thanks for all of the responses. After some monkeying around, I figured out that I'd used an NSNumber where I should have used an NSString. The code is now compiling and running happily. While I did learn some things from this, I'm confused about NSUserDefaults and the values it can

[Job] Cocoa Programmer wanted for contract work

2008-08-30 Thread Geoff Smith
Hi List, I posted this job on Criagslist with 0 responses :-( I guess most of the Cocoa programmers are gainfully employed on the iPhone :-) This is not a complicated application, probably 10 windows and the interfacing to carbon, the statusitem/menulet and the preferences pane. If you are

Mac Desktop Software Engineer - Apply Now - Immediate Opening @ CA

2008-08-30 Thread Jason Adams
Greetings, I am currently looking for Mac Desktop Software Engineer for an opportunity with an extremely high profile company. Duration : 6 Months Contract to hire Location : Oakland, CA Rate: Open US Citizens, Green Card Holders and TN Visa Holders Only Please

Re: How do I use Sort Descriptor binding in IB on my array controller?

2008-08-30 Thread amy
I'm struggling with this very problem, can anyone point me in the right direction? Many Thanks Amy FROM : Rick Mann DATE : Sun Jun 01 02:52:25 2008 I have an array controller in IB that is used by a popup menu in a table view column. I would like those menu items to be sorted. Is there a

NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Hi, im seeing an odd issue, maybe someone has an idea? i have an NSTableView on my form, populated from an array by implementing the numberOfRowsInTableView: and objectValueForTableColumn:row: methods. i have some I elements on my form that update (filter) the contents if the array, and

Re: Newb Question re NSUserDefaults and Ints

2008-08-30 Thread Michael Ash
On Sat, Aug 30, 2008 at 4:35 PM, Brad Gibbs [EMAIL PROTECTED] wrote: While I did learn some things from this, I'm confused about NSUserDefaults and the values it can store. I created an NSMutableDictionary to register the defaults, which is, I believe archived as a property list. Floats can

Re: NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread Andrew Merenbach
On Aug 30, 2008, at 2:08 PM, marc hoffman wrote: Hi, im seeing an odd issue, maybe someone has an idea? i have an NSTableView on my form, populated from an array by implementing the numberOfRowsInTableView: and objectValueForTableColumn:row: methods. i have some I elements on my form

Re: How do I use Sort Descriptor binding in IB on my array controller?

2008-08-30 Thread Quincey Morris
On Aug 30, 2008, at 07:58, [EMAIL PROTECTED] wrote: I'm struggling with this very problem, can anyone point me in the right direction? Many Thanks Amy FROM : Rick Mann DATE : Sun Jun 01 02:52:25 2008 I have an array controller in IB that is used by a popup menu in a table view column.

Re: NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Andrew, Greetings, Marc, I've seen this behavior when calling -reloadData from a thread other than the main thread. Is it possible that that's happening in your case? i'm only ever changing the data in response to an action received from a UI element - a search box or a menu item

Re: NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread Michael Ash
On Sat, Aug 30, 2008 at 5:08 PM, marc hoffman [EMAIL PROTECTED] wrote: Hi, im seeing an odd issue, maybe someone has an idea? i have an NSTableView on my form, populated from an array by implementing the numberOfRowsInTableView: and objectValueForTableColumn:row: methods. i have some I

Re: NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Michael, thanx for the extensive reply. any idea what might be happening? i mean, obviously the call to reloadData: takes fine, else if the table had - say - 3 rows before, it would not know to paint row five when i click it, right? That's actually not obvious at all. You must remember

Re: NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread Andrew Merenbach
On Aug 30, 2008, at 4:42 PM, marc hoffman wrote: Andrew, Michael, So then the question is, why does this -reloadData call fail? The most obvious reason would be that its target is nil. In any case, step through the code in question in the debugger, and hopefully the reason shall be

(Newbie) How do Multiple NSWindowControllers find MyDocument?

2008-08-30 Thread John Velman
My app will have a master window with push buttons to open (as needed) different views on my data. I understand the multiple nib - multiple window controller arrangement with override of makeWindowControlers tolerably well (I think). But.. If I understand Document-Based Applications Overview

Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?

2008-08-30 Thread Quincey Morris
On Aug 30, 2008, at 17:50, John Velman wrote: So, if the button is pushed to bring up a new window, the IBAction is in the master window controller. But the actual adding of the NSWindowController and its associated window should be done by a method back in MyDocument. I can't find

Re: NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread Kyle Sluder
On Sat, Aug 30, 2008 at 7:30 PM, marc hoffman [EMAIL PROTECTED] wrote: right - but it wouldn't constantly requery for the row count, right? so if i tell it you got 3 rows and then later, when more rows get added, the reloadData call fails, the view would stll assume it has three rows only.

Simple Array of Strings Binding Question

2008-08-30 Thread Seth Willits
Howdy, I have an array of strings which I am displaying in a table view. I have an array controller whose contentArray is bound to an array at a key path through File's Owner. I then bind the table column value to arrangedObjects. I have Add and Remove buttons with Enable respectively

CoreData and mutableArrayValueForKey:

2008-08-30 Thread Alex Duzik
Hi all, I'm writing an app where one Core Data entity -- Folder -- has (conceptually) a to-many relationship with another object -- Item. But I want to keep those items in a particular order, so I have a third entity, OrderedItem, which keeps a reference to the folder along with a

Newbie question: What does no-op mean?

2008-08-30 Thread Jon Davis
See subject; I'm just discovering Cocoa and documentation such as that surrounding NSAutoReleasePool's release function is described as a no- op. What does no-op mean, and where can I find it discussed? Thanks, Jon ___ Cocoa-dev mailing list

Re: Newbie question: What does no-op mean?

2008-08-30 Thread Steven Noyes
No operation. This is used to indicate a method or instruction that performs nothing. Steven On Aug 30, 2008, at 7:59 PM, Jon Davis wrote: See subject; I'm just discovering Cocoa and documentation such as that surrounding NSAutoReleasePool's release function is described as a no-op.

Re: CoreData and mutableArrayValueForKey:

2008-08-30 Thread Quincey Morris
On Aug 30, 2008, at 14:23, Alex Duzik wrote: I'm writing an app where one Core Data entity -- Folder -- has (conceptually) a to-many relationship with another object -- Item. But I want to keep those items in a particular order, so I have a third entity, OrderedItem, which keeps a

Re: CoreData and mutableArrayValueForKey:

2008-08-30 Thread Chris Hanson
On Aug 30, 2008, at 2:23 PM, Alex Duzik wrote: I'm writing an app where one Core Data entity -- Folder -- has (conceptually) a to-many relationship with another object -- Item. But I want to keep those items in a particular order, so I have a third entity, OrderedItem, which keeps a

Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?

2008-08-30 Thread John Velman
Thanks. I think the self.document method you describe will do it for me. This is part of the syntax (and a relation) that I'd missed. So much to learn! John V. On Sat, Aug 30, 2008 at 06:16:17PM -0700, Quincey Morris wrote: On Aug 30, 2008, at 17:50, John Velman wrote: So, if the button is

NSArrayController bindings and preservesSelection

2008-08-30 Thread Michael Link
I have a situation where I have a source list whose selection controls the bindings of an NSArrayController, and thus the content of a view. Depending on what source a user selects in the source list the NSArrayController can have its MOC bound and a fetch predicate set or its contentSet

Hard calculation crashes after 60Minutes

2008-08-30 Thread Mr. Gecko
Hello I am making a program that does a really hard calculation and it seems to crash after 60 Minutes. I don't really know why it does, I am guessing it is because I am using a for loop that takes awhile to run (an estaminet of 120 MInutes every time it loops). so I was hoping someone

Re: NSArrayController bindings and preservesSelection

2008-08-30 Thread Michael Link
Doh! I must not have had my afternoon hit of caffeine. I was still using fetch: instead of fetchWithRequest:merge:error: for the object controller which caused the contentSet to be nil (and thus the selection to be wiped out) until the fetch was sent the next time around the run loop. --

Re: Hard calculation crashes after 60Minutes

2008-08-30 Thread Andrew Merenbach
On Aug 30, 2008, at 8:08 PM, Mr. Gecko wrote: Hello I am making a program that does a really hard calculation and it seems to crash after 60 Minutes. I don't really know why it does, I am guessing it is because I am using a for loop that takes awhile to run (an estaminet of 120 MInutes

Re: Hard calculation crashes after 60Minutes

2008-08-30 Thread Roland King
looks like you're running out of memory. Are you leaking, are you autoreleasing objects? On Aug 31, 2008, at 11:08 AM, Mr. Gecko wrote: Hello I am making a program that does a really hard calculation and it seems to crash after 60 Minutes. I don't really know why it does, I am guessing it

Re: Hard calculation crashes after 60Minutes

2008-08-30 Thread Andrew Merenbach
On Aug 30, 2008, at 8:42 PM, Andrew Merenbach wrote: On Aug 30, 2008, at 8:08 PM, Mr. Gecko wrote: Hello I am making a program that does a really hard calculation and it seems to crash after 60 Minutes. I don't really know why it does, I am guessing it is because I am using a for loop

NSOutlineView and checkbox cells for child items

2008-08-30 Thread Justin Williams
Hi, I have an two-column NSOutlineView with the first column being an checkbox cell. This works fine for any root level/parent items, but any children underneath a given item will not display a checkbox cell. You can see a screenshot of what i'm describing here:

Re: Hard calculation crashes after 60Minutes

2008-08-30 Thread Mr. Gecko
I will go and see if it is leaking Thanks, Mr. Gecko On Aug 30, 2008, at 10:44 PM, Andrew Merenbach wrote: On Aug 30, 2008, at 8:42 PM, Andrew Merenbach wrote: On Aug 30, 2008, at 8:08 PM, Mr. Gecko wrote: Hello I am making a program that does a really hard calculation and it seems to