Re: Can you get data from the software update PP?

2009-12-28 Thread Scott Anguish
On Dec 27, 2009, at 9:16 PM, PCWiz wrote: > There's a PLIST file in /Library/Preferences called > com.apple.SoftwareUpdate.plist. It has 2 keys of type NSDate called > "LastAttemptDate" and "LastSuccessfulDate". LastSuccessfulDate is probably > what you want, so just parse that plist file in y

Re: Any way to keep on pane of NSSplitView from resizing?

2009-12-28 Thread Gustavo Pizano
Its not so complicated as it look... I was having problems also with that... but then I found somewhere on internet how they do it... but they were taking more things into account... I just needed to do what you want. just declare the Max and min width/height of your left/top view, implement th

Re: Program not working under Snow Leopard

2009-12-28 Thread Alexander Spohr
Is the delegate of your NSURLConnection retained while the request runs? atze Am 27.12.2009 um 16:23 schrieb insanely...@mac.com: > I'm working on a program that manages file downloads via NSURLConnection. I > was developing under Leopard and the program was working just fine. I've

Re: extending automatic core data entity classes

2009-12-28 Thread Alexander Spohr
Am 28.12.2009 um 07:59 schrieb Damien Cooke: > iPhone Simulator 3.1 (139.1), iPhone OS 3.1.2 (7D11) > *** Terminating app due to uncaught exception 'NSInvalidArgumentException', > reason: '*** -[NSManagedObject returnAdditiveWarningByType]: unrecognized > selector sent to instance 0x3a2d580' W

Re: extending automatic core data entity classes

2009-12-28 Thread Quincey Morris
On Dec 27, 2009, at 22:59, Damien Cooke wrote: > iPhone Simulator 3.1 (139.1), iPhone OS 3.1.2 (7D11) > *** Terminating app due to uncaught exception 'NSInvalidArgumentException', > reason: '*** -[NSManagedObject returnAdditiveWarningByType]: unrecognized > selector sent to instance 0x3a2d580' >

Re: Program not working under Snow Leopard

2009-12-28 Thread Quincey Morris
On Dec 27, 2009, at 07:23, insanely...@mac.com wrote: > I'm working on a program that manages file downloads via NSURLConnection. I > was developing under Leopard and the program was working just fine. I've > switched to a new computer running Snow Leopard with the latest Xcode. My > program

Re: Program not working under Snow Leopard

2009-12-28 Thread Kai BrĂ¼ning
On 28.12.2009, at 13:07, Quincey Morris wrote: > On Dec 27, 2009, at 07:23, insanely...@mac.com wrote: > >> I'm working on a program that manages file downloads via NSURLConnection. I >> was developing under Leopard and the program was working just fine. I've >> switched to a new computer run

Updating tracking areas Rect

2009-12-28 Thread Gustavo Pizano
Hello all. I have this simple thing to do, but I can't find how to. Im declaring tracking areas for my view to be the a small portion of the bottom part of it, this is to allow resizing of the view, and be able to updateCursor when the mouse is over it.. now.. when I set the view for first tim

Re: Updating tracking areas Rect

2009-12-28 Thread Gustavo Pizano
Hello again. Im overriding this method : -(void) updateTrackingAreas{ [super updateTrackingAreas]; NSInteger i = 0; while ([[self trackingAreas] count]==0) { [self removeTrackingArea:[[self trackingAreas] objectAtIndex:i]]; i++; }

Re: Any way to keep on pane of NSSplitView from resizing?

2009-12-28 Thread Ken Ferry
This is much easier in 10.6 and later. From the AppKit release notes : New NSSplitView delegate method (New since January 2009 seed)To make it easier for your application to maintain the size of given subviews of a split view w

Re: Any way to keep on pane of NSSplitView from resizing?

2009-12-28 Thread Rick Mann
Thanks, that's exactly what I did. Not quite as easy as checking a box in IV, but easy enough. Sent from my iPhone On Dec 28, 2009, at 8:21, Ken Ferry wrote: This is much easier in 10.6 and later. From the AppKit release notes: New NSSplitView delegate method (New since January 2009 seed)

Re: Any way to keep on pane of NSSplitView from resizing?

2009-12-28 Thread Gustavo Pizano
Aha i didn't know that.. everyday one learn something new. G. On Dec 28, 2009, at 5:21 PM, Ken Ferry wrote: > This is much easier in 10.6 and later. From the AppKit release notes: > New NSSplitView delegate method (New since January 2009 seed) > To make it easier for your application to maintai

Re: button cell - selection change timing

2009-12-28 Thread Matt Neuburg
On Sun, 27 Dec 2009 18:00:59 -0800, Rainer Standke said: >When the user clicks a button in a row that is currently not selected, >then I get the URL for the row that's in the process of being de- >selected, because the method targeted by the button runs before the >selection has changed to the new

Re: Updating tracking areas Rect

2009-12-28 Thread Joar Wingfors
On 28 dec 2009, at 07.55, Gustavo Pizano wrote: > NSInteger i = 0; > while ([[self trackingAreas] count]==0) { > [self removeTrackingArea:[[self trackingAreas] > objectAtIndex:i]]; > i++; > } That loop seems all kinds of wrong... ;-) How about:

Re: Can you get data from the software update PP?

2009-12-28 Thread PCWiz
True, but I don't think there are any official APIs to do this. Independent Cocoa Developer, Macatomy Software http://macatomy.com On 2009-12-28, at 1:18 AM, Scott Anguish wrote: > > On Dec 27, 2009, at 9:16 PM, PCWiz wrote: > >> There's a PLIST file in /Library/Preferences called >> com.ap

Re: Updating tracking areas Rect

2009-12-28 Thread Gustavo Pizano
aha mmm thanks... that loop was the first thing came into my mind. I cant use the last option because it may happen that I will have not just 2 TA but N.. G. On Dec 28, 2009, at 6:00 PM, Joar Wingfors wrote: > > On 28 dec 2009, at 07.55, Gustavo Pizano wrote: > >> NSInteger i = 0; >>

Shared CoreData DataModel and DB file..

2009-12-28 Thread Robert Monaghan
Is it possible to share a DataModel and resulting db file between 2 apps? If so, what sort of pitfalls are present? I want to create an App that creates the DB file, and a plugin for another App, that reads the database file. Thanks! bob.. ___ Cocoa

Re: Programmatically creating a small check box

2009-12-28 Thread Frederik Slijkerman
Thanks, but that doesn't work for me. However I've now created a small test program where changing the control size works correctly, so I think I can narrow it down to see what causes the problem. Best regards, Frederik Slijkerman Kyle Sluder wrote: On Sun, Dec 27, 2009 at 12:45 PM, Frederik

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Mike Abdullah
Yes. If you use the SQLite store, it automatically uses filesystem locking. Indeed, that is how CalendarStore and AddressBook operate under the hood these days I believe. The major caveat is that the locking doesn't work if the file is accessed from two different filesystems. i.e. a local file

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Robert Monaghan
Nice! I suspected as much. So, I should implement a file lock mechanism, as well, then. I have every reason to believe that people would use the database file over a network filesystem. bob.. On Dec 28, 2009, at 10:09 AM, Mike Abdullah wrote: > Yes. If you use the SQLite store, it automatica

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Mike Abdullah
But from remote and local machine at once? This sounds dangerously like a multi-user setup which Core Data is very much NOT designed for. Trying to force it will only result in pain later. On 28 Dec 2009, at 18:19, Robert Monaghan wrote: > Nice! I suspected as much. > > So, I should implement

Re: Undo Names in NSPersistentDocument

2009-12-28 Thread mlist0...@gmail.com
On Dec 18, 2009, at 8:39 PM, Graham Cox wrote: (regarding undo action names when using NSPersistentDocument) > Unfortunately I haven't used Core Data so I'm not sure what's needed to fit > in with that, if the framework hasn't already solved it. As near as I can tell, 5 years after Core Data's

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Robert Monaghan
Ideally, it is on the same machine, with the same user. Again, the DB file is read only, and due to the nature of the data, it isn't likely that the data will be updated while the plugin is reading. I still need to do better planning. bob. On Dec 28, 2009, at 10:29 AM, Mike Abdullah wrote: > B

Re: button cell - selection change timing

2009-12-28 Thread Rainer Standke
Thanks Paul, you were right about going for the clicked row. When I get that and then ask the array controller behind the table view for the object at the index of the clickedRow I get what I was looking for. Matt's suggestion to use delays didn't work because the selection in the table vie

NSPredicate mal behaviour?

2009-12-28 Thread David Blanton
In a directory I have: .DS_Store ._Filename These name are in a array that is filtered using this predicate: notBeginsWithDot = [NSPredicate predicateWithFormat:@"NOT SELF BEGINSWITH %@", @"."]; childrenArray = [childrenArray filteredArrayUsingPredicate:notBeginsWithDot]; childrenArra

Re: Strange Problems with IBPlugin

2009-12-28 Thread Jonathan Hess
On Dec 26, 2009, at 9:38 PM, Carter Allen wrote: > Hello! > > Thanks in advance, I know this is a lot to ask. I am working on a framework > of custom classes for my own personal use, and it was going very well until > I started to work on the Interface Builder plugin part. Download the > non-wor

Re: [NSOpenPanel] Is there a way to access the contextual information?

2009-12-28 Thread Ken Thomases
On Dec 27, 2009, at 5:41 PM, Iceberg-Dev wrote: > On Dec 27, 2009, at 11:48 PM, Graham Cox wrote: > >> On 28/12/2009, at 9:40 AM, Iceberg-Dev wrote: >> >>> Problem: what if you need to access the contextual info from the >>> panel:shouldShowFilename: method? >>> >>> >>> I haven't found a meth

Re: NSPredicate mal behaviour?

2009-12-28 Thread David Blanton
Errata. Can't debug my own code. NSPredicate is working properly. Happy New Year! On Dec 28, 2009, at 2:09 PM, David Blanton wrote: In a directory I have: .DS_Store ._Filename These name are in a array that is filtered using this predicate: notBeginsWithDot = [NSPredicate predicateWith

Customizing left expression title in NSPredicateEditorRowTemplate

2009-12-28 Thread Mike Chambers
I have am creating a simple NSPredicateEditorRowTemplate instance that I instantiate like so: NSMutableArray *seriesExpressions = [NSMutableArray arrayWithCapacity:[series count]]; for(NSString *s in series) { [seriesExpressions addObject:[NSExpression expressionForConstantValue:

Re: Customizing left expression title in NSPredicateEditorRowTemplate

2009-12-28 Thread Mike Chambers
ok. I got this working by adding: - (id)copyWithZone:(NSZone *)zone { return [self retain]; } to my template subclass. Can anyone tell me if I am approaching this the correct way? mike On Mon, Dec 28, 2009 at 2:42 PM, Mike Chambers wrote: > I have am creating a simple NSPredicateEditorRow

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Steve Steinitz
Hi Bob, On 28/12/09, Robert Monaghan wrote: Is it possible to share a DataModel and resulting db file between 2 apps? If so, what sort of pitfalls are present? I want to create an App that creates the DB file, and a plugin for another App, that reads the database file. I have 5 machines sh

Re: Updating tracking areas Rect

2009-12-28 Thread Graham Cox
On 29/12/2009, at 4:00 AM, Joar Wingfors wrote: >> NSInteger i = 0; >> while ([[self trackingAreas] count]==0) { >> [self removeTrackingArea:[[self trackingAreas] >> objectAtIndex:i]]; >> i++; >> } > > > That loop seems all kinds of wrong... ;-) > >

To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Howdy, Trying to crank out a real Cocoa app as an experiment - usually spend my time doing Cocoa Touch. Anyway, I have a pretty simple set of models: Accounts<->>Items I want to setup a screen with a table of accounts. When you click on an account, you see a table of items, click on an item,

Re: Updating tracking areas Rect

2009-12-28 Thread Graham Cox
On 29/12/2009, at 10:27 AM, Graham Cox wrote: > or iterate it by index backwards. Or of course, just repeatedly delete item '0' until the count is 0. No need for an index, though it might not be all that efficient, if the internal implementation moves elements > removed index down one using

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Quincey Morris
On Dec 28, 2009, at 15:32, Hunter Hillegas wrote: > My question is if I can do this all with bindings. The table of accounts > works fine. What I can't seem to figure out is how to limit the 'Items' in > the second NSTableView to just be the ones associated with the selected > account, using bi

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Hi Quincey, I did read this page - but I'm not sure it does what I want because it's only 2/3rds of my interface. The master-detail explained there works fine for my items list and to display the selected item's properties but I need the list of items (the master in Apple's example) to be the r

Trying to do something that *should* be simple...

2009-12-28 Thread Jeff Heard
Okay, I've created two audio queues, one output and one input. And no, I don't have them both on at once, because I know well that wont' work. All I want to do is sample sound from the input and then replay the frequency of that sound as the output. Can anyone help me? It seems to work if I

Re: Updating tracking areas Rect

2009-12-28 Thread Henry McGilton (Boulevardier)
On Dec 28, 2009, at 3:27 PM, Graham Cox wrote: > > On 29/12/2009, at 4:00 AM, Joar Wingfors wrote: > >>> NSInteger i = 0; >>> while ([[self trackingAreas] count]==0) { >>> [self removeTrackingArea:[[self trackingAreas] >>> objectAtIndex:i]]; >>> i++; >>> } >

Re: Updating tracking areas Rect

2009-12-28 Thread Graham Cox
On 29/12/2009, at 1:03 PM, Henry McGilton (Boulevardier) wrote: >> Wouldn't this fall foul of the usual problem with deleting items from the >> collection being iterated, in that it will skip every other object? (Or >> perhaps fast enumeration has a built-in protection against that?) > > Yes,

Re: Updating tracking areas Rect

2009-12-28 Thread Joar Wingfors
On 28 dec 2009, at 18.41, Graham Cox wrote: > So, if -trackingAreas returns the actual array (rather than a copy), and > -removeTrackingArea: is basically a wrapper for -removeObject: on that same > array then the loop will fail with this exception. Since we don't know if > either of these thi

Re: Updating tracking areas Rect

2009-12-28 Thread Joar Wingfors
On 28 dec 2009, at 09.22, Gustavo Pizano wrote: > I cant use the last option because it may happen that I will have not just 2 > TA but N.. Perhaps you should still maintain your own array of tracking areas? I'm not sure if anyone else should ever add tracking areas to your view, but it might

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Quincey Morris
On Dec 28, 2009, at 16:19, Hunter Hillegas wrote: > I did read this page - but I'm not sure it does what I want because it's only > 2/3rds of my interface. The master-detail explained there works fine for my > items list and to display the selected item's properties but I need the list > of ite

Re: Updating tracking areas Rect

2009-12-28 Thread Quincey Morris
On Dec 28, 2009, at 18:41, Graham Cox wrote: > I was wondering if fast enumeration operated on a copy internally. I'm > thinking 'no', since ... The implementation of the fast enumeration protocol is different in every class that conforms to it, but typically it would be expected not to copy an

Crash using IKImageBrowserView

2009-12-28 Thread Dan Treiman
I'm seeing a recurring but intermittent crash in my GC-enabled app, which uses multiple IKImageBrowserViews. Has anybody seen anything like this? Have any insight as to why its crashing here? Stack: Thread 0 Crashed: 0 GLEngine0x00011b051940 glGetError_Exec +

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Yes, that's exactly it. Dual level master detail. For whatever reason, the part I just couldn't see in my head was how to wire up the second NSArrayController to accountsController.selection.items. Thank you so much - just needed that little kick to get to the next step. Appreciate it. On Dec

Re: Is there a warning for this?

2009-12-28 Thread Sean McBride
Kyle Sluder (kyle.slu...@gmail.com) on 2009-12-24 9:20 AM said: >Otherwise, give your ivars a prefix (underscore is >verboten according to Apple, since they use it in the frameworks). This is a common misconception. The underscore is reserved by Apple for method names, not ivars. That's how the

Re: Window Controllers

2009-12-28 Thread Bill Garrison
On Dec 23, 2009, at 5:54 PM, Graham Cox wrote: > On 24/12/2009, at 7:45 AM, David Blanton wrote: > >> In best Cocoa practices, should these Panels be owned by a window controller? > > Yes. > > --Graham I have an Xcode project template that demonstrates a working document-based app with a mai