Re: MyDocument.xib v MainMenu.xib

2009-12-29 Thread Graham Cox
On 30/12/2009, at 4:23 PM, David Blanton wrote: > In a document based app I want to have some 'inspectors" that reflect what i > sgoing on in the document. These inspectors should float. > > If I make NSPanel's for the inspector in MyDocument.xib then each instance of > a document gets its ow

Why does Core Data re-enter -beginUndoGrouping at Checkpoint?

2009-12-29 Thread Jerry Krinock
Sometimes, when Core Data receives a NSUndoManagerCheckpointNotification from -beginUndoGrouping, it invokes -beginUndoGrouping again, so that -beginUndoGrouping is re-entered before it finishes. Can anyone guess why Core Data might be doing this? It causes things to get rather hairy when you'r

Re: Notification when displays are detected?

2009-12-29 Thread Paul Sanders
That looks OK to me. I do: NSNotificationCenter *dnc = [NSNotificationCenter defaultCenter]; [dnc addObserver: self selector: @selector (didChangeScreenParameters:) name: NSApplicationDidChangeScreenParametersNotification object: nil]; ... - (void) didChangeScreenParameters: (NSNotification

Document-based application issue

2009-12-29 Thread Mac Lancer
Hello, Gentlemen, I’m working on a Cocoa application that is intended to open documents in custom format. It is a document-based application and it should open files with aeep/aeew extensions. The problem is that on some Mac computers after installation aeep/aeew files do not open when the user do

Re: Notification when displays are detected?

2009-12-29 Thread Paul Sanders
NSApplicationDidChangeScreenParametersNotification Returns a stale value for [NSScreen visibleFrame] after the dock moves from one screen to another (on Snow Leopard at least). Solution: wait a second or so, then ask again. This notification is also sent when the screen arrangement or dock is

Resizing Issues with NSCollectionView

2009-12-29 Thread Carter Allen
I have a couple NSCollectionViews in a window. They are each in a side of a split view, and I'm having resize issues. It starts out fine, like this: http://c.zcr.me/84B7X , but then when I resize it, this happens: http://c.zcr.me/84D3C . All views and pieces are set up to stretch horizontally, incl

Re: MyDocument.xib v MainMenu.xib

2009-12-29 Thread Nathan Day
If you have an application delegate you can add a IB instance variable to that. Though what I usually do in your situation is to create a separate NIB and window controller for the inspector panel, I then have a showInspector method in my application delegate which will create the window controll

MyDocument.xib v MainMenu.xib

2009-12-29 Thread David Blanton
In a document based app I want to have some 'inspectors" that reflect what i sgoing on in the document. These inspectors should float. If I make NSPanel's for the inspector in MyDocument.xib then each instance of a document gets its own set of inspectors. I would like to have just one set

StoreKit problem

2009-12-29 Thread Development
I am trying to use the store kit. Everything works until i send the data to my php script to verify the transaction below is the code that sends to the script and then i get this error: response {"status":21002, "exception":"java.lang.IllegalArgumentException: propertyListFromString parsed an ob

testing email code in the simulator (MFMailComposeViewControllerDelegate)

2009-12-29 Thread Paul Archibald
Is there a way to test the emailing code in my app from within the simulator? I don't have an iPhone. It looks like my code is working, but I would really like to see whether the message is actually being constructed and sent correctly. I realize that on an iPhone it would be handed over to

Re: SQLite mime type?

2009-12-29 Thread Paul Archibald
Cool, thanks, I'll try that. On Dec 29, 2009, at 11:10 AM, davel...@mac.com wrote: On Dec 29, 2009, at 11:56 AM, Paul Archibald wrote: I am using SQLite in my iPhone app. and i want to be able to email the database file. I see that attaching it to a message is pretty straightforward, but t

Re: Reference NSSearchFieldCell within NSSearchField?

2009-12-29 Thread Jim Correia
On Dec 29, 2009, at 3:02 PM, Mike Chambers wrote: > The NSSearchField docs mention that it wraps an NSSearchFieldCell, > which contains such APIs as setSendsWholeSearchString (which i need to > dynamically set). > > Is there any programatic way to get a reference to the > NSSearchFieldCell wrappe

Re: CocoaBuilder is back

2009-12-29 Thread Karl Moskowski
On Dec 29, 2009, at 8:25 AM, Andy Lee wrote: > I haven't seen an announcement on the list, so I thought I'd mention that > CocoaBuilder is back up, with some very nice improvements. > > Congratulations and a million thanks to Bertrand Mansion! During CB's hiatus, I've been using a Google Group

Reference NSSearchFieldCell within NSSearchField?

2009-12-29 Thread Mike Chambers
The NSSearchField docs mention that it wraps an NSSearchFieldCell, which contains such APIs as setSendsWholeSearchString (which i need to dynamically set). Is there any programatic way to get a reference to the NSSearchFieldCell wrapped in a particular NSSearchField? I know I can link an IBOutlet

Re: Notification when displays are detected?

2009-12-29 Thread Dave Keck
> What is the difference between that center and my center? The NSWorkspace notification center is usually reserved for system-wide events (WillPowerOffNotification, WillSleepNotification, DidPerformFileOperationNotification), while the +defaultCenter is reserved for events occurring within the cu

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
Dave, victory is yours. What is the difference between that center and my center? -Jake Schwartz On Dec 29, 2009, at 2:05 PM, Dave Keck wrote: > Does nc == [NSNotificationCenter defaultCenter]? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Possible bug with NSBackgroundStyleRaised

2009-12-29 Thread PCWiz
I'm using this in my NSTextField subclass to get a recessed text style: [[self cell] setBackgroundStyle:NSBackgroundStyleRaised]; It works fine other than the fact that if the text field's NSAttributedString contains any text with an alternate text color set (using NSForegroudColorAttributeName

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
No: NSNotificationCenter *nc = [[NSWorkspace sharedWorkspace] notificationCenter]; And Paul, it does exist because the other notification I have set up get recognized works and I c&ped the code. Thanks for all the help guys. -Jake On Dec 29, 2009, at 2:05 PM, Dave Keck wrote: > Does nc == [N

Re: SQLite mime type?

2009-12-29 Thread davelist
On Dec 29, 2009, at 11:56 AM, Paul Archibald wrote: > I am using SQLite in my iPhone app. and i want to be able to email the > database file. I see that attaching it to a message is pretty > straightforward, but the addAttachmentData method requires a mime type, and I > don't know what that s

Re: Notification when displays are detected?

2009-12-29 Thread Dave Keck
Does nc == [NSNotificationCenter defaultCenter]? ___ 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/

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
I tried this one but it doesn't seem to be doing anything, so odds are I am adding the observer wrong. I am a little new at this, if that wasn't obvious haha. // Second notification, when the screens change [nc addObserver:self selector:@selector(handleBackgroundChange:) name:NSApplicationDidCha

Re: Notification when displays are detected?

2009-12-29 Thread Sean McBride
Jacob Schwartz (jakehschwa...@gmail.com) on 2009-12-29 1:15 PM said: >After some searching through the API, which apparently I am not good at, >I figured asking was easier. Does anyone know of a notification that >gets posted when another screen is added/detected. I figured it would be >in NSWorks

Re: Notification when displays are detected?

2009-12-29 Thread Dave Keck
Maybe NSApplicationDidChangeScreenParametersNotification? ___ 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/Uns

Re: Notification when displays are detected?

2009-12-29 Thread Dave DeLong
I just popped up a notification watcher and unplugged my external monitor, and saw lots of "CMDevice(Un)RegisteredNotification" distributed notifications go past. There were also a bunch of "CMDisplayDeviceProfilesNotification" distnotes with the same userInfo dictionaries as the Device(Un)Regi

Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
Hey all, After some searching through the API, which apparently I am not good at, I figured asking was easier. Does anyone know of a notification that gets posted when another screen is added/detected. I figured it would be in NSWorkspace but I didn't see anything. Thanks. -Jake Schwartz__

SQLite mime type?

2009-12-29 Thread Paul Archibald
I am using SQLite in my iPhone app. and i want to be able to email the database file. I see that attaching it to a message is pretty straightforward, but the addAttachmentData method requires a mime type, and I don't know what that should be. Any ideas out there? ___

Re: CocoaBuilder is back

2009-12-29 Thread Andy Lee
On Dec 29, 2009, at 11:13 AM, lbland wrote: > On Dec 29, 2009, at 8:25 AM, Andy Lee wrote: > >> I haven't seen an announcement on the list, so I thought I'd mention that >> CocoaBuilder is back up, with some very nice improvements. >> >> Congratulations and a million thanks to Bertrand Mansion!

Re: CocoaBuilder is back

2009-12-29 Thread lbland
hi- On Dec 29, 2009, at 8:25 AM, Andy Lee wrote: > I haven't seen an announcement on the list, so I thought I'd mention that > CocoaBuilder is back up, with some very nice improvements. > > Congratulations and a million thanks to Bertrand Mansion! I have to second that! I always liked CocoaBui

CocoaBuilder is back

2009-12-29 Thread Andy Lee
I haven't seen an announcement on the list, so I thought I'd mention that CocoaBuilder is back up, with some very nice improvements. Congratulations and a million thanks to Bertrand Mansion! --Andy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

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

2009-12-29 Thread Mike Abdullah
Since this is the Cocoa list, you'll probably have better luck asking on something more appropriate like the Core Audio list. On 29 Dec 2009, at 00:58, Jeff Heard wrote: > 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

Re: Updating tracking areas Rect

2009-12-29 Thread Gustavo Pizano
I did change the loop yesterday. and now its working ok... > The rest of the discussion was off on a bit of a tangent - how best to write > that loop. the same was with me in todays post. . ;-) Still Im having problems when dragging I need to be very precise when clicking the first time.. mus

Re: Updating tracking areas Rect

2009-12-29 Thread Graham Cox
On 29/12/2009, at 7:37 PM, Gustavo Pizano wrote: > Yes, the view is the only one adding the TA, when I resize the view by > dragging, as far as I understand, the updateTrackingAreas method its called, > so I overwrote that method deleting the old ones and calculating the new > ones. Maybe wha

Re: Creating CoreData classes

2009-12-29 Thread Brian Bruinewoud
Ah, that seems perfect (haven't tried it yet), but it claims to do what I want. Thanks. On 28/12/2009, at 17:51 , Rob Keniger wrote: > On 28/12/2009, at 2:52 PM, Brian Bruinewoud wrote: >> But I'm looking for something more like this: >> >> CDClass *cdObject = [ CDClass insertNewObjectInManage

launching my application at startup(whenever pc starts)

2009-12-29 Thread kirankumar
hi everyone, i develop an application that i want to launch at startup ie, every time when i start my system my application has to launch ,can any one help me plz. Is there any script to keep at PackageMarker. Regards, kiran. The information contained in this email and any attachments is conf

Re: Is there a warning for this?

2009-12-29 Thread Izidor Jerebic
Well, the documentation says : Avoid the use of the underscore character as a prefix meaning private, especially in methods. Apple reserves the use of this convention Note the

Re: Updating tracking areas Rect

2009-12-29 Thread Gustavo Pizano
Yes, the view is the only one adding the TA, when I resize the view by dragging, as far as I understand, the updateTrackingAreas method its called, so I overwrote that method deleting the old ones and calculating the new ones. Maybe what graham says must be done, copy the collection and iterate