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 m

Re: How to debug a nib loading error?

2008-03-06 Thread Steve Cronin
Jon; Thanks for the quick response!! If I set the NSZombieEnabled variable to YES I get the following: #0 0x9282b36d in -[NSException raise] #1 0x92852247 in +[NSException raise:format:] #2 0x928da79b in logMessageAndRaise #3 0x927dc8af in NSPopAutoreleasePool #4 0x93284

Re: GetMonitorFromWindow

2008-03-06 Thread Jens Alfke
On 6 Mar '08, at 10:12 PM, Apparao Mulpuri wrote: Actually this is one of our client requirement, he simply follows the windows product(where this functionity is available). You might want to let the client know that this sort of literal-minded porting has resulted in a number of failed Mac

Re: How to debug a nib loading error?

2008-03-06 Thread Jonathan Hess
I would start by debugging with the NSZombieEnabled environment variable set to YES. You can read about that environment variable here: http://developer.apple.com/technotes/tn2004/tn2124.html If that doesn't work, I would try running with libgmalloc enabled. You can turn that on with "Enabl

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 coun

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: 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 su

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:

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 Zitzma

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

Re: GetMonitorFromWindow

2008-03-06 Thread Roy Lovejoy
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 to other monitor, i have to dispaly it fully in second monitor, otherwise undo the drag operation. so... you

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: Good

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

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 h

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 VB?

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 d

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 lis

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 tea

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

Intel mac required for iPhone development

2008-03-06 Thread Robert Nicholson
I'm just curious but why? Pls note I own 3 intel macs Sent from my iPhone ___ 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: 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:

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 mod

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 v

[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: Presumably iphone does Objective-C 2.0?

2008-03-06 Thread Kevin Vanwulpen
Hi "Note: iPhone OS does not support memory management using the garbage collection feature that is in Mac OS X v10.5 and later." Can be read at this link: http://developer.apple.com/iphone/gettingstarted/docs/creatingiphoneapps.action So I would say ...at least not the AGC aspect of Obj-C 2.

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 >

Re: Presumably iphone does Objective-C 2.0?

2008-03-06 Thread Dave Camp
That's not what he was asking. He was specifically asking about Objective-C 2.0. It has functionality not present in previous versions of the language. Dave On Mar 6, 2008, at 2:48 PM, Conrad Taylor wrote: Hi, I'm sure that iPhone has always done Objective-C because the iPhone is running

Re: Presumably iphone does Objective-C 2.0?

2008-03-06 Thread Conrad Taylor
Hi, I'm sure that iPhone has always done Objective-C because the iPhone is running a core version of the Mac OS X operating system. -Conrad On Thu, Mar 6, 2008 at 2:34 PM, Robert Nicholson <[EMAIL PROTECTED]> wrote: > So given that Core is supported by the iphone are all the Objective-C > 2.0feat

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 coexi

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

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: 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 exa

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 t

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 approa

Re: Deferring a selector until later, but before painting

2008-03-06 Thread John Stiles
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 ordered. Any way to get this on Tiger or am I just out of luck?

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, y

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 yo

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 Joshua Preston
First, a little head way... According to some cached documentation (thanks google!) I've located a snippet that appears to do exactly what I require, however, there's a nice notice saying NOT to use this in a production environment. Taking that as a queue, I am assuming that persisting the

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

2008-03-06 Thread Keary Suska
on 3/6/08 2:05 PM, [EMAIL PROTECTED] purportedly said: > For example, when I create my first object, I want the numeric id > field to be 1. Each subsequent insert should be the previous numeric > id field + 1. I've read some of the posts regarding performing this > and the general thought on thi

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 Go

Re: CoreAnimation efficiency

2008-03-06 Thread Jens Alfke
On 6 Mar '08, at 2: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 NSBezierPath/

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: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Nir Soffer
On Mar 6, 2008, at 18:30, Michael Pringle wrote: 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. If you play with all those apps, you can se

Re: NSTask not completing

2008-03-06 Thread Jens Alfke
On 6 Mar '08, at 12:35 PM, Charles Ross wrote: However, the following code, when run from a simple Foundation Tool I built to figure out what's going on, never gets to the second NSLog statement, even after running for more than ten minutes. Is this process really taking that long or am I

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 attrib

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). Assuming

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 fr

NSTask not completing

2008-03-06 Thread Charles Ross
I'm writing an application to teach myself Cocoa. I had originally written the application using Core Data, but am attempting to rewrite it without Core Data in order to better learn the Cocoa basics. One of the features of the new program is that it will import the data from the existing a

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 dr

Re: Cocoa-dev and iPhone policy

2008-03-06 Thread I. Savant
> 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 > (don't kn

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: 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 n

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 mailin

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

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: V

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)

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: 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 g

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 identic

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 OSAtomic. I recall from somewhere, I >think, that there is an mechanism somewhere, selectively to

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 wor

Creating outlets

2008-03-06 Thread Mark Teagarden
Hi, Is there an order I should use when I'm creating a new object and defining its outlets? Should I create the class in Xcode, hard-code the IBOutlets in the header file, and then instantiate it in Interface Builder and ctrl-click everything together? Or should I create the class in Xcode, then

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 : I

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 IBOutle

modal session before NSApplicationMain is invoked.

2008-03-06 Thread Adhamh Findlay
Hello, Under certain circumstances the application I am working on will launch a modal session before NSApplicationMain is invoked. The session displays a window and is dismissed by the user. This all works great, except the document window does not appear after NSApplicationMain is star

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 OSAtomic. I recall from somewhere, I think, that there is an mechanism somewhere, selectively to disable processor cores (or perhaps entire

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? I'

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 NSBezierPath/Qu

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 d

Re: Deferring a selector until later, but before painting

2008-03-06 Thread John Stiles
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 definitely take a look at -viewWillDraw:. BTW, views don't actually have delegates—many control subclasses do, e.g. NSTableView has one—but a plain NSView does not. Than

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: large documents with doc based app

2008-03-06 Thread ajb . lists
True, the usefulness is reduced to being a performance optimization in certain circumstances. On Mar 6, 2008, at 11:53 AM, Alastair Houghton wrote: 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(). Unl

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: 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] wrote:

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 ot

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 bas

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 se

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 > >http://docs.info.apple

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

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. Cont

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 certain

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

2008-03-06 Thread Alastair Houghton
On 6 Mar 2008, at 11:54, [EMAIL PROTECTED] wrote: I didn't know that nothing had been posted as I sent the following email ... Ah, in that case I apologise. It's just that people post messages with empty bodies all the time, both to public mailing lists and to e.g. my company's support a

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 fa

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: Cocoa - Not loading any window at startup ...

2008-03-06 Thread micpringle
Hi Jean-Daniel, I thought it would be something simple, which is probably why I couldn't find any reference for it on Google :-) Will check this when I get home. If this is the case, how does one then go about opening and closing the window, from say a menu item attached to an action ?? Th

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 h

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 P

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 po

Re: Deferring a selector until later, but before painting

2008-03-06 Thread j o a r
On Mar 6, 2008, at 8:32 AM, Ken Ferry wrote: Or can you do your final setup in -viewWillDraw? For some kinds of problems, you could synchronously mark whatever state you're interested as invalid, then resolve any invalidated state in -viewWillDraw. This would be an appropriate way to do

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

2008-03-06 Thread Alastair Houghton
On 6 Mar 2008, at 11:05, [EMAIL PROTECTED] wrote: [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 to do. There ar

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: http://lists.apple.co

CoreAnimation efficiency

2008-03-06 Thread Half Activist
Hello All, 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 NSBezierPath/Quartz primitives and is really fas

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 th