Cocoa - Not loading any window at startup ...

2008-03-06 Thread micpringle
Hi, I'm relatively new to Cocoa but have an application that's coming along nicely. Mostly when I have come across an issue I have managed to find a solution using Google but this particular one has me stumped. My application has three window, a notification window (similar to Growl) that

10.5.2 release notes?

2008-03-06 Thread Jonathan Dann
Hi Guys, Does anyone know if there are some release notes specific for 10.5.2? I remember reading on some blog that there was an NSTreeController bugfix. I can't seem to be able to find any details on Google other than these http://docs.info.apple.com/article.html?artnum=307109 which

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Alastair Houghton
On 6 Mar 2008, at 11:05, [EMAIL PROTECTED] wrote: nothing at all [EMAIL PROTECTED] - posting empty messages to cocoa-dev ... Seriously, please post an actual question, not just a subject line. As it is, even *with* the subject line you chose, we have no idea exactly what you're trying

Cocoa - Not loading any window at startup ...

2008-03-06 Thread micpringle
___ 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 Subscription:

Re: Deinterlacing QTCaptureDecompressedVideoOutput

2008-03-06 Thread Bram Loogman
Hi Robert, I just tried to save the captured image to a mov file with the length of one frame and than open it as a QTMovie and export it again as an jpeg. When I look at the QTMovie the image it's ok, but the exported image looks the same as the image captured with an image buffer. The strange

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Jean-Daniel Dupas
Hi, To prevent your window to open at startup, uncheck the 'Visible At Launch' box in your window settings (in Interface Builder). I don't know a supported way to create an application that appears in the Dock but has the same behaviour than a LSUIElement. Le 6 mars 08 à 12:55, [EMAIL

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Jean-Daniel Dupas
As your window is in the same nib than your menu, you can simply bind your menu item's action to the makeKeyAndOrderFront: method of the window. If you also want to add a button to close your window, bind the button's action to performClose: If you need a more complex logic, you can create

Re: large documents with doc based app

2008-03-06 Thread Torsten Curdt
On 06.03.2008, at 01:13, Kyle Sluder wrote: On Wed, Mar 5, 2008 at 6:40 PM, Torsten Curdt [EMAIL PROTECTED] wrote: I though NSData would handle the access just transparently. Otherwise that would be good to keep in mind also for files slightly smaller than 2GB :) While NSData

CoreData, bindings, and tableviews, oh my

2008-03-06 Thread Gregory Weston
I've looked but I'm probably using the wrong search terms or I'm missing something so obvious that noone else has had any trouble with it. Since most of what I write supports quite old Mac OS X versions, I'm only just now starting to experiment with CoreData and I've run into a stumper

Re: Deferring a selector until later, but before painting

2008-03-06 Thread Brady Duga
Could you create the control hidden, then defer whatever sets the value of the control and defer a setHidden:NO? --Brady ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: 10.5.2 release notes?

2008-03-06 Thread Sean McBride
On 3/6/08 12:23 PM, Jonathan Dann said: Hi Guys, Does anyone know if there are some release notes specific for 10.5.2? I remember reading on some blog that there was an NSTreeController bugfix. I can't seem to be able to find any details on Google other than these

Re: large documents with doc based app

2008-03-06 Thread Alastair Houghton
On 6 Mar 2008, at 00:13, Kyle Sluder wrote: On Wed, Mar 5, 2008 at 6:40 PM, Torsten Curdt [EMAIL PROTECTED] wrote: I though NSData would handle the access just transparently. Otherwise that would be good to keep in mind also for files slightly smaller than 2GB :) While NSData certainly has

How to set Document Icon when saving

2008-03-06 Thread Lincoln Green
I am making a simple text editor(document based). I have set the app icon, but can't figure out how to make the documents saved with the text editor have my document icon. I am saving files using the following functions writeRTFDToFile:atomically:YES writeToFile:atomically:NO How do you

Re: How to set Document Icon when saving

2008-03-06 Thread j o a r
On Mar 6, 2008, at 4:23 PM, Lincoln Green wrote: How do you set the document icon? Typically you don't. The Finder will query Launch Services and automatically associate your documents with the correct icon based on the information found in your applications property list - And also

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Nir Soffer
On Mar 6, 2008, at 13:55, [EMAIL PROTECTED] wrote: So ultimatley my question is, how do launch/setup my application so that I get a dock icon, but no menu bar and so that no window is opened when launched, only when the user does something that prompts a window. You don't - because no

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Michael Pringle
I want the dock icon to have a menu appear above it when clicked, similar to how stacks work in Leopard. So not that unusual really ... also Dashboard works the same way, dock icon with no menu. On 6 Mar 2008, at 15:27, Nir Soffer wrote: On Mar 6, 2008, at 13:55, [EMAIL PROTECTED]

Re: large documents with doc based app

2008-03-06 Thread Alastair Houghton
On 6 Mar 2008, at 16:34, Aaron Burghardt wrote: If you don't mind working with the POSIX APIs (e.g., Unix system calls), there is mmap(). Unlike NData, it lets you specify a window onto the file so that you can control how much of your address space is mapped to the file at a given time.

Re: Send an event to another app

2008-03-06 Thread Christopher Nebel
On Mar 5, 2008, at 8:40 PM, Nick Zitzmann wrote: On Mar 5, 2008, at 9:20 PM, Alex Kac wrote: I realize that under OS X things are different and they simply don't work that way. I also know that menus do have a handler and I *assume* that even if a menu is greyed out or a sheet is open

Re: Deferring a selector until later, but before painting

2008-03-06 Thread John Stiles
Oh, wait… this requires Leopard :| Is there anything that works with Tiger? I'm trying to avoid Leopard dependencies when there are easy substitutes. John Stiles wrote: Actually, in this case, it seems like a perfect fit for what I'm doing. I'm already using a subclassed view anyway. I will

Re: CoreAnimation efficiency

2008-03-06 Thread Chris Ryland
On Mar 6, 2008, at 5:43 AM, Half Activist wrote: As I'm investigating on which drawing techniques to use for a software I'm planing to create, imagine a kind of vector drawing program (that's not really that but a somewhat similar). In its actual version, all drawing relies on

Re: Deferring a selector until later, but before painting

2008-03-06 Thread John Stiles
On Leopard, this solution works perfectly. I get a chance to update my view right before it draws, which is exactly what the doctor ordered. Any way to get this on Tiger or am I just out of luck? John Stiles wrote: Oh, wait… this requires Leopard :| Is there anything that works with Tiger?

Interface to shut down cores and/or processors?

2008-03-06 Thread Jay Reynolds Freeman
I have a shiny new Mac Pro and am chasing some bugs in parallel applications that may have to do with things like cache flushing, memory barriers and OSAtomicwhatever. I recall from somewhere, I think, that there is an mechanism somewhere, selectively to disable processor cores (or

Syntax error when declaring an IBOutlet

2008-03-06 Thread Mark Teagarden
Hi, My app has three objects - world, mapview, and game, and they need to know about each other in various combinations: mapview needs an outlet to world and game, and game needs an outlet to world. I've ctrl-clicked them all together appropriately in IB, and now I'm trying to declare the

Re: Interface to shut down cores and/or processors?

2008-03-06 Thread Jean-Daniel Dupas
Install the CHUD tools, and the in /Developers/Extra/PreferencePanes you can find the processor pref pane that do what you want. I remeber there is also some CHUD header that allow you to do it programatically, but don't remeber where. Le 6 mars 08 à 19:12, Jay Reynolds Freeman a écrit :

Re: Syntax error when declaring an IBOutlet

2008-03-06 Thread David
Whats in World.h? On Thu, Mar 6, 2008 at 1:16 PM, Mark Teagarden [EMAIL PROTECTED] wrote: Hi, My app has three objects - world, mapview, and game, and they need to know about each other in various combinations: mapview needs an outlet to world and game, and game needs an outlet to world.

Re: Interface to shut down cores and/or processors?

2008-03-06 Thread Sean McBride
On 3/6/08 10:12 AM, Jay Reynolds Freeman said: I have a shiny new Mac Pro and am chasing some bugs in parallel applications that may have to do with things like cache flushing, memory barriers and OSAtomicwhatever. I recall from somewhere, I think, that there is an mechanism somewhere,

Re: Syntax error when declaring an IBOutlet

2008-03-06 Thread Paul Goracke
On Mar 6, 2008, at 10:16 AM, Mark Teagarden wrote: I have another class, Display, that gives me the same error as the one in game.h - I've omitted it here for clarity. Basically, the mapview.h #import / IBOutlet is the only one that worked correctly. My questions are: 1. Why does

RE: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In

2008-03-06 Thread Joe Jones
Yep, no luck. -Original Message- From: j o a r [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 3:12 AM To: Joe Jones Subject: Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In On Mar 6, 2008, at 1:52 AM, Joe Jones wrote: Any ideas on how I can see what is

TableColumn Enabled binding on 10.4/10.5

2008-03-06 Thread Knut Lorenzen
My Table Column Bindings to an NSArrayController are set like this: Binding: Value Controller Key: arrangedObjects Model Key Path: theName (this is a String) Binding: Enabled Controller Key: arrangedObjects Model Key Path: enabled (this is a Boolean) All this works perfectly well on 10.5, i.e.

Re: Syntax error when declaring an IBOutlet

2008-03-06 Thread Mark Teagarden
Hi Paul, I'll bet your World.h includes '#import Game.h' which creates an import cycle when imported from Game.h, but not when imported by WMapView.h. Actually, it does. I was concerned that all of these objects needed outlets to each other, and that since (in my imperfect understanding) I

Fwd: fyi - Mac OS native GDL2 / GSWeb Installer package

2008-03-06 Thread Lars Sonchocky-Helldorf
FYI, in case somebody still has to maintain some ObjC WebObjects-4.5 Webapp and/or wants an EOF clone in Objective-C (because he finds CoreData to light weighted or whatever): Here is what you need: A WO-4.5 clone with EOF working from within Xcode: Anfang der weitergeleiteten E-Mail:

Cocoa-dev and iPhone policy

2008-03-06 Thread Alexander Griekspoor
Hi everybody, I was just wondering what the policy will be when it comes to Cocoa vs Cocoa-touch questions. Obviously they are related, obviously this will lead to a huge increase in traffic (not necessarily bad). Assuming that there would be a separate Cocoa-touch/iphone-dev mailinglist

Re: Cocoa-dev and iPhone policy

2008-03-06 Thread mmalc crawford
On Mar 6, 2008, at 12:23 PM, Alexander Griekspoor wrote: I was just wondering what the policy will be when it comes to Cocoa vs Cocoa-touch questions. The SDK is subject to NDA, so you should not discuss it in public. mmalc ___ Cocoa-dev

Re: Cocoa-dev and iPhone policy

2008-03-06 Thread Alexander Griekspoor
Ok, that makes things clear. My apologies, Alex On 6 mrt 2008, at 20:28, mmalc crawford wrote: On Mar 6, 2008, at 12:23 PM, Alexander Griekspoor wrote: I was just wondering what the policy will be when it comes to Cocoa vs Cocoa-touch questions. The SDK is subject to NDA, so you should

Re: Syntax error when declaring an IBOutlet

2008-03-06 Thread Paul Goracke
On Mar 6, 2008, at 12:00 PM, Mark Teagarden wrote: Hi Paul, I'll bet your World.h includes '#import Game.h' which creates an import cycle when imported from Game.h, but not when imported by WMapView.h. Actually, it does. I was concerned that all of these objects needed outlets to each

Re: CoreData, bindings, and tableviews, oh my

2008-03-06 Thread Keary Suska
on 3/6/08 6:50 AM, [EMAIL PROTECTED] purportedly said: Since most of what I write supports quite old Mac OS X versions, I'm only just now starting to experiment with CoreData and I've run into a stumper fairly early. I've got a window with 2 NSTableView objects on it. One was created by

Re: Creating outlets

2008-03-06 Thread Adam P Jenkins
With Xcode 3 it works much better to make all source code changes, including adding new outlets or actions, from in Xcode, and then in IB invoke the Synchronize with Xcode command from under the File menu. Don't follow the advice in the Hillegas book for creating new classes or outlets

Re: Cocoa-dev and iPhone policy

2008-03-06 Thread Scott Anguish
Official information is forthcoming. On Mar 6, 2008, at 12:31 PM, I. Savant wrote: I was just wondering what the policy will be when it comes to Cocoa vs Cocoa-touch questions. Obviously they are related, obviously this will lead to a huge increase in traffic (not necessarily bad).

Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread Joshua Preston
Hey guys, First, let me say that I'm just starting to pick up Cocoa and Objective-C, and so far, I love it. Core Data seems to be an elegant solution to some of my past problems (mainly Java persistence). I am however having problems finding information regarding auto incremented

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread Hank Heijink (Mailinglists)
It's a little busy at the developer website, since they just announced the iPhone SDK. I think there's nothing to do but wait... Best, Hank On Mar 6, 2008, at 4:05 PM, Joshua Preston wrote: Hey guys, First, let me say that I'm just starting to pick up Cocoa and Objective-C, and so far, I

Re: 10.5.2 release notes?

2008-03-06 Thread Ricky Sharp
On Mar 6, 2008, at 8:48 AM, Sean McBride wrote: On 3/6/08 12:23 PM, Jonathan Dann said: Hi Guys, Does anyone know if there are some release notes specific for 10.5.2? I remember reading on some blog that there was an NSTreeController bugfix. I can't seem to be able to find any details on

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread I. Savant
- (void)awakeFromInsert { static int tempID = 1; [super awakeFromInsert]; self.employeeID = [NSNumber numberWithInt:tempID++]; } What do you think will happen when the application is quit, then run the next time? How will it remember the last tempID? -- I.S.

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread Chris Hanson
On Mar 6, 2008, at 1:05 PM, Joshua Preston wrote: I am however having problems finding information regarding auto incremented attributes, namely an NSNumber attribute. What do you want to do with this? Core Data manages primary foreign keys for you via object IDs and relationships, so

Re: Deferring a selector until later, but before painting

2008-03-06 Thread Ken Ferry
On Thu, Mar 6, 2008 at 9:59 AM, John Stiles [EMAIL PROTECTED] wrote: On Leopard, this solution works perfectly. I get a chance to update my view right before it draws, which is exactly what the doctor ordered. Any way to get this on Tiger or am I just out of luck? Out of luck. Well, you

Re: Deferring a selector until later, but before painting

2008-03-06 Thread David Duncan
On Mar 6, 2008, at 9:59 AM, John Stiles wrote: On Leopard, this solution works perfectly. I get a chance to update my view right before it draws, which is exactly what the doctor ordered. Any way to get this on Tiger or am I just out of luck? If nothing else you can use the hammer

Re: Deferring a selector until later, but before painting

2008-03-06 Thread Ken Ferry
On Thu, Mar 6, 2008 at 2:06 PM, John Stiles [EMAIL PROTECTED] wrote: Ken Ferry wrote: On Thu, Mar 6, 2008 at 9:59 AM, John Stiles [EMAIL PROTECTED] wrote: On Leopard, this solution works perfectly. I get a chance to update my view right before it draws, which is exactly what the doctor

Re: Deferring a selector until later, but before painting

2008-03-06 Thread John Stiles
Ken Ferry wrote: On Thu, Mar 6, 2008 at 2:06 PM, John Stiles [EMAIL PROTECTED] wrote: Ken Ferry wrote: On Thu, Mar 6, 2008 at 9:59 AM, John Stiles [EMAIL PROTECTED] wrote: On Leopard, this solution works perfectly. I get a chance to update my view right before it draws, which is

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread Joshua Preston
I.S., Hence the don't use in production clause. That method starts at 1 every time the application is launched, so not the complete solution in my case, it was only there as a reference to incrementing a value (arguably for my own use). The idea would be to persist that number in the

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread Joshua Preston
Chris, The short answer is for quick look ups. My application creates a new managed object which represents a new issue. When the person done with the entry completes it, they should be issued a tracking number. For reasons ubiquitous with telephone support, I am attempting to only

Presumably iphone does Objective-C 2.0?

2008-03-06 Thread Robert Nicholson
So given that Core is supported by the iphone are all the Objective-C 2.0features supported too? So you can write iphone apps that use GC should you so wish? I've yet to see the SDK which hopefully will answer these questions. also given so much overlap b/w iphone SDK and Cocoa SDK do they

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread Kyle Sluder
On Thu, Mar 6, 2008 at 5:32 PM, Joshua Preston [EMAIL PROTECTED] wrote: Chris, The short answer is for quick look ups. My application creates a new managed object which represents a new issue. When the person done with the entry completes it, they should be issued a tracking number.

[moderator] Re: Presumably iphone does Objective-C 2.0?

2008-03-06 Thread Scott Anguish
Folks, Please remember that this is not public information. Even the documentation requires an NDA and login to get access. Succinctly, the iPhone can't be discussed here. WWDR does have more information forthcoming. thanks scott On Mar 6, 2008, at 3:49 PM, Kevin Vanwulpen wrote: Hi

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread Joshua Preston
Kyle, Where would be the ideal spot to place this fetch request? Regards, Joshua Preston [EMAIL PROTECTED] On Mar 6, 2008, at 6:47 PM, Kyle Sluder wrote: You could issue a fetch request at startup, store its @max in some ivar in a MOC subclass, and use that instead of the local static

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject

2008-03-06 Thread I. Savant
Where would be the ideal spot to place this fetch request? -applicationDidFinishLaunching: ...? -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: 10.5.2 release notes?

2008-03-06 Thread Ali Ozer
Does anyone know if there are some release notes specific for 10.5.2? I remember reading on some blog that there was an NSTreeController bugfix. ... You mean detailed releases notes geared towards developers? I think they stopped doing that years ago. :( Something like this:

Grabbing current Safari webpage url

2008-03-06 Thread Steve Sheets
Good evening all... Is there a way of finding out what is the current topmost webpage being viewed by Safari? Somehow then grabbing the url title of that page? I have seen a couple applications that do exactly that. You goto a web page using Safari, but then goto the other applications

Re: Intel mac required for iPhone development

2008-03-06 Thread [EMAIL PROTECTED]
I'm just curious but why? Well, since various Apple people have already pointed out discussing the iPhone SDK is part of an NDA, so there's no way you'll get an answer. I'm sure it revolves around the fact that limiting the sw and hw supported reduces the development effort for that

Re: Intel mac required for iPhone development

2008-03-06 Thread Joshua Preston
Dunno, Maybe its a scheme to make me buy a new mac? Sent from my iPhone On Mar 6, 2008, at 9:30 PM, Robert Nicholson [EMAIL PROTECTED] wrote: I'm just curious but why? Pls note I own 3 intel macs Sent from my iPhone ___ Cocoa-dev mailing list

Re: Grabbing current Safari webpage url

2008-03-06 Thread Nick Zitzmann
On Mar 6, 2008, at 7:59 PM, Steve Sheets wrote: Is there a way of finding out what is the current topmost webpage being viewed by Safari? Yes, through AppleScript. I think I can get this information using Applescript, but one of the developers hinted that he was not using Applescript to

GetMonitorFromWindow

2008-03-06 Thread Apparao Mulpuri
Hi List, Presently i am adding DualMonitor support to my application. If user drags application window to more than 50% portion to other monitor, i have to dispaly it fully in second monitor, otherwise undo the drag operation. Is Apple provides any api like GetMonitorFromWindow() in

Localized Apple Help (HTML) doesn't load

2008-03-06 Thread John Fox
Hi Folks: I'm having a problem where localized versions of my local HTML help don't load, and I don't know how to debug this. For example, if I change the system preferences to Japanese, and click on the Help Menu item, the Apple Help Viewer app launches, its main window appears, but no

Re: Grabbing current Safari webpage url

2008-03-06 Thread Ken Ferry
On Thu, Mar 6, 2008 at 7:39 PM, Nick Zitzmann [EMAIL PROTECTED] wrote: On Mar 6, 2008, at 7:59 PM, Steve Sheets wrote: I think I can get this information using Applescript, but one of the developers hinted that he was not using Applescript to do this. Is there an application service

Re: Grabbing current Safari webpage url

2008-03-06 Thread Adam P Jenkins
You can use Scripting Bridge to do the same things you could do in AppleScript, but in Objective-C, or other languages. http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptingBridgeConcepts/Introduction/chapter_1_section_1.html On Mar 6, 2008, at 9:59 PM, Steve Sheets wrote:

Re: GetMonitorFromWindow

2008-03-06 Thread Apparao Mulpuri
So you mean --- there is no APIs avialable. - Apparao On 3/7/08, Roy Lovejoy [EMAIL PROTECTED] wrote: On Mar 6, 2008, at 9:01 PM, Apparao Mulpuri wrote: Hi List, Presently i am adding DualMonitor support to my application. If user drags application window to more than 50% portion

Re: GetMonitorFromWindow

2008-03-06 Thread Nick Zitzmann
On Mar 6, 2008, at 10:48 PM, Apparao Mulpuri wrote: So you mean --- there is no APIs avialable. There is, but you really shouldn't be doing what you're trying to do unless you have an extremely good reason. It's perfectly OK for a user to have a window straddle two screens. Nick

Re: GetMonitorFromWindow

2008-03-06 Thread Apparao Mulpuri
Actually this is one of our client requirement, he simply follows the windows product(where this functionity is available). So i should implement it. If APIs available, Could you please provide those Thanks, - Apparao On 3/7/08, Nick Zitzmann [EMAIL PROTECTED] wrote: On Mar 6, 2008, at 10:48

Re: Grabbing current Safari webpage url

2008-03-06 Thread Adam Leonard
If you are looking to do it in Applescript (you want it to work in 10.4, for example), here is the script I use: tell application System Events if application process Safari exists then tell application Safari to get URL of document 1 end tell To get the title of the webpage, just

How to debug a nib loading error?

2008-03-06 Thread Steve Cronin
Folks; Tiger 10.4.11 -- XC 2.4.1 I'm baffled by an IB error. Reasonable development has been on-going. Pretty stringent Build Rules and no errors or warnings. I decide to do a clean build, torch the app's prefs file and the CoreData store. I want to focus on the initial installation phase of

Re: GetMonitorFromWindow

2008-03-06 Thread Nick Zitzmann
On Mar 6, 2008, at 11:12 PM, Apparao Mulpuri wrote: Actually this is one of our client requirement, he simply follows the windows product(where this functionity is available). So i should implement it. If APIs available, Could you please provide those OK, I guess a business requirement

Re: GetMonitorFromWindow

2008-03-06 Thread Trouble Maker
Might also want to let your client know that you care more about meeting requirements than providing optimal value. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the