Re: Modal dialog without NSApplication

2008-09-19 Thread brodhage
Hi, thank you very much for your answer, Rob. > I am successfully using modal Cocoa windows in a plugin inside a Carbon application. This statement and your code gave me the final hint that it must work - and that the problem must be found somewhere else. Using your code nothing changed

Re: Modal dialog without NSApplication

2008-09-19 Thread Rob Keniger
On 19/09/2008, at 2:41 AM, brodhage wrote: I allready do. And then I call this function (within subclass of NSWindowController): - (void)showModalDialog { NSApplication *_app; NSWindow *_window; [self showWindow:nil]; _app = [NSApplication sharedAppli

Re: NSOperationQueue

2008-09-19 Thread Mike Fischer
Am 20.09.2008 um 00:51 schrieb John Love <[EMAIL PROTECTED]>: No sooner do I say "Solved" that I determine "Not Solved". I am no longer crashing in part due to the fact that I've removed NSApplescript from the thread; however, the evidence is still insurmountable that the calculation is not run

Re: NSInvocation

2008-09-19 Thread Michael Ash
On Wed, Sep 10, 2008 at 1:44 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > But if you use it to call a method which returns a struct, then it > crashes and burns. It doesn't even throw an exception, it just > segfaults. > > I've filed this as a bug as rdar://6210060. It really should work, but > it

Re: NSOperationQueue

2008-09-19 Thread Quincey Morris
On Sep 19, 2008, at 08:15, John Love wrote: 9) Its -startCalculation looks like: - (void) startCalculation { int row; // itsCalcStatus = kNoError; // set by -init for (row=1; row < 1; row++) { if (itsCalcStatus == kSpreadsh

[MEET] LA CocoaHeads : Thursday 9/25 7:30pm

2008-09-19 Thread Rob Ross
Hey LA CocoaHeads. Next week we continue our study group meeting for the Aaron Hillegass book "Cocoa Programming for Mac OS X, 3rd Edition". http://search.barnesandnoble.com/Cocoa-Programming-for-Mac-OS-X/Aaron-Hillegass/e/9780321503619/?itm=1 We'll be covering chapters 7-9. Please jot down

Distributed Objects (DO, a.k.a. PDO) on Windows

2008-09-19 Thread Mike Manzano
Forgive me if this is not quite on topic. Is there a Windows library that allows Windows programs to vend objects in the same way they can be vended on a Mac? Thanks, Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Constant NSArray Count

2008-09-19 Thread Nick Zitzmann
On Sep 19, 2008, at 9:15 AM, Alex Mills wrote: I have this working as an IBAction but I want it to run all the time so that it will control the tabs whenever the selection count of the Array changes, how can I do this? You can use KVO to call a method when the selectedObjects value chan

Re: async NSOperation and NSOperationQueue

2008-09-19 Thread Jason Coco
On Sep 19, 2008, at 18:27 , Michael Ash wrote: On Fri, Sep 19, 2008 at 2:41 PM, John Love <[EMAIL PROTECTED]> wrote: Michael Ash wrote: Has it occurred to you that waiting for the operation to finish is rather at odds with the idea of trying to run it asynchronously to keep your program r

Re: async NSOperation and NSOperationQueue

2008-09-19 Thread Michael Ash
On Fri, Sep 19, 2008 at 2:41 PM, John Love <[EMAIL PROTECTED]> wrote: > Michael Ash wrote: > >> > Has it occurred to you that waiting for the operation to finish is > rather at odds with the idea of trying to run it asynchronously to > keep your program responsive? >> > > Absolutely, but if

sbtl track.

2008-09-19 Thread Scott Andrew
I have a question about the subtitle track and setting the font/size of that track. It seems that the font and size are ignored when playing back the subtitle track. I am getting 96 font text across my screen not matter what i set the font size to in the 3GPP structure. I can't even seem

Text View with fixed width

2008-09-19 Thread Aleksandro Eterverda
Hi I'm new to this list and I'm completly new to Cocoa. I'm creating my first app but I stuck with the following. I have an instance of NSTextView (created with Interface Builder) in an instance of NSScrollView. I want text to be layed out in area of fixed width (length should be as it is - unlim

Constant NSArray Count

2008-09-19 Thread Alex Mills
Hey, I'm rather new to cocoa (and programming in general) and I'm working on a core data project that uses a tab view to display different attributes of an entry. I'm trying to code it so that if no items are selected in the list it will display a tab, otherwise display a different tab. I

Re: NSOperationQueue

2008-09-19 Thread John Love
No sooner do I say "Solved" that I determine "Not Solved". I am no longer crashing in part due to the fact that I've removed NSApplescript from the thread; however, the evidence is still insurmountable that the calculation is not running in a background Thread, but in the main thread. Beca

how to set Document type and its icon programatically

2008-09-19 Thread Nick Rogers
Hi, My cocoa app is not a document based app, but saves a binary file to the disk. I can set this file's name and extension and icon by going to the Target properties and adding a new document type there. It was working fine and the resulting saved file was given the required icon. But t

[Moderator] Re: Games for iPhone

2008-09-19 Thread Scott Anguish
On 18-Sep-08, at 6:36 PM, D.K. Johnston wrote: I've written a couple of cute little memory games. If anyone is interested in creating an iPhone interface for them, please contact me off-list. Two issues. First, the iPhone isn't to be discussed here. Period. Second, do not crosspost coc

Re: File I/O

2008-09-19 Thread Jason Coco
On Sep 19, 2008, at 17:20 , Nick Zitzmann wrote: On Sep 19, 2008, at 3:15 PM, Jordon Hirshon wrote: How can I read a file a line at a time (i.e. getline)? I'm trying to do this in a Cocoa Framework. Try using NSFileHandle to read a file until a line feed is encountered. There's no bu

Re: File I/O

2008-09-19 Thread Shawn Erickson
On Fri, Sep 19, 2008 at 2:15 PM, Jordon Hirshon <[EMAIL PROTECTED]> wrote: > How can I read a file a line at a time (i.e. getline)? I'm trying to do this > in a Cocoa Framework. "line" in what sense? is this a text(ish) file? Anyway look at -[NSString getLineStart:end:contentsEnd:forRange:] an

Re: File I/O

2008-09-19 Thread Nick Zitzmann
On Sep 19, 2008, at 3:15 PM, Jordon Hirshon wrote: How can I read a file a line at a time (i.e. getline)? I'm trying to do this in a Cocoa Framework. Try using NSFileHandle to read a file until a line feed is encountered. There's no built-in method of stopping at a character, but you

File I/O

2008-09-19 Thread Jordon Hirshon
How can I read a file a line at a time (i.e. getline)? I'm trying to do this in a Cocoa Framework. Thanks, Jordon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: Differences between -isEqual: and -isEqualTo:?

2008-09-19 Thread Nate Weaver
This is the gist of it, I think. NSArray and NSDictionary should be safe to store mutable objects, since they use an index or a key for storage position, and not the object (the value) itself. So (as I understand it): You *are* allowed to mutate objects in collections, but only if the objec

Re: Drawing an NSImage in a CALayer

2008-09-19 Thread David Duncan
On Sep 19, 2008, at 10:48 AM, Matt Long wrote: p.s. I would defer to David Duncan on the CGImageRef creation overhead. I'm sure he's right. I just didn't have the time to try to get his code to work. ;-) I forgot to set the current context :). More complete code here, although this doesn

Re: async NSOperation and NSOperationQueue

2008-09-19 Thread John Love
Michael Ash wrote: > Has it occurred to you that waiting for the operation to finish is rather at odds with the idea of trying to run it asynchronously to keep your program responsive? > Absolutely, but if the Thread is running in the background, it really shouldn't matter to the main

Re: Weird Error

2008-09-19 Thread development2
Yep I figured it out. That was it. Just a stupid on my part. Thanks. On Sep 19, 2008, at 9:31 AM, Jim Correia wrote: On Sep 19, 2008, at 11:18 AM, development2 wrote: Ok I hope someone can help me. I need to get this working. Here is what I am doing. I have a class called Object, it is set u

Re: Core Data adding new instance - creating relationship to existing instance

2008-09-19 Thread Jamie Hardt
Hi- Your fetch request isn't finding any Categories, and the array returning from executeFetchRequest is empty. Before doing the setValue:forKey:, you should test the returned array from executeFetchRequest to make sure it contains >0 categories, and handle the situation appropriately if

Re: How make a cocoa lib wich create a window ?

2008-09-19 Thread Ken Thomases
On Sep 18, 2008, at 11:38 PM, rouanet brice wrote: I work on a projetc where the executable haven't GUI but I can launch somme gui window with plugins. test <- no gui application -plugin -triangle <- this plugin display a triangle in a cocoa window -rectangle <- this plugin display a r

Re: Drawing an NSImage in a CALayer

2008-09-19 Thread Matt Long
Hey Brad, I re-read my message and realized I was a bit condescending in my comments. Not sure why I was over-stating things so much. I didn't think I was in a bad mood, but maybe I was. ;-) Anyhow, sorry about that. I'm interested in what you are doing here so I went ahead and wrote a

Core Data adding new instance - creating relationship to existing instance

2008-09-19 Thread Amy Heavey
I'm trying to add new instances of some entities, I've got it adding new objects, and I can create new relationships to new related objects, but I can't work out how to connect a new instance to an existing instance of an entity, eg I have items with relationship to upcs and categories. I

Re: How to hide disclosure triangle in NSOutlineView [10.5]?

2008-09-19 Thread Marc Respass
Corbin, thank you very much. That did the trick! I did read the docs, just not those docs. I'll pay more attention to the release notes in the future :) Thanks again Marc On Sep 19, 2008, at 11:07 AM, Corbin Dunn wrote: On Sep 19, 2008, at 7:58 AM, Marc Respass wrote: Hi All, I have an

Re: How to hide disclosure triangle in NSOutlineView [10.5]?

2008-09-19 Thread Kyle Sluder
On Fri, Sep 19, 2008 at 1:06 PM, chaitanya pandit <[EMAIL PROTECTED]> wrote: > What you can do is create an image which has nothing i.e is transparent and > use the following method to set it as the image of disclosure triangle That probably isn't the best idea, because it will still function as a

Re: How to hide disclosure triangle in NSOutlineView [10.5]?

2008-09-19 Thread chaitanya pandit
What you can do is create an image which has nothing i.e is transparent and use the following method to set it as the image of disclosure triangle - (void)outlineView:(NSOutlineView *)outlineView willDisplayOutlineCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item {

NSFetchRequest

2008-09-19 Thread chaitanya pandit
Hi, List, I have a core data model with 4 entities (viz. Person,Company,Bank and Address) each entity has an attribute "ID" which is of kind NSString. Now, what i want to do is i already have an "ID" and i want to find a managedObject with matching ID. What i do right now is i create an NSFetc

Re: fullscreen quicktime across multiple monitors

2008-09-19 Thread Sean McBride
It does, doesn't it. However, it has lots of little problems, and is only really useful for the simplest of cases. Search the list archives for "enterFullScreenMode". On 9/19/08 9:42 AM, Memo Akten said: >wow that looks perfect thanks.. > >On 19 Sep 2008, at 05:10, John C. Randolph wrote: > >>

RE: Deleting Alias

2008-09-19 Thread Glover,David
Hi, just in case anybody else notices similar behaviour - I called removeFileAtPath if an fileExistsAtPath check on the alias evaluated to true - BUT fileExistsAtPath method only returns true on an alias if the original file / app is present. The removeFileAtPath method on its own will quite happi

Re: Weird Error

2008-09-19 Thread Charles Steinman
--- On Fri, 9/19/08, development2 <[EMAIL PROTECTED]> wrote: > // in here we need to gets the info out of the > dictioanary and into > the object Why would you bother including your entire header file and boilerplate code and then edit out the part where the error occurs?

Re: Weird Error

2008-09-19 Thread Jonathan del Strother
On Fri, Sep 19, 2008 at 4:18 PM, development2 <[EMAIL PROTECTED]> wrote: > Ok I hope someone can help me. I need to get this working. > > Here is what I am doing. I have a class called Object, it is set up like > this: > > -- Object.h > > @interface Object : NSObject > { > >NSNu

Re: Weird Error

2008-09-19 Thread Jim Correia
On Sep 19, 2008, at 11:18 AM, development2 wrote: Ok I hope someone can help me. I need to get this working. Here is what I am doing. I have a class called Object, it is set up like this: Object is the root object defined by the Objective-C language. (NSObject is typically the root object

NSTextView not always accepting a Favorite style from NSFontPanel

2008-09-19 Thread Russell Finn
I am struggling with a puzzling problem involving an NSTextView and the Favorites list in the NSFontPanel. I'm hoping someone on the list has seen something like this before and/or can offer any pointers. My program is a document-based application with a main document window that includes an NSTe

Weird Error

2008-09-19 Thread development2
Ok I hope someone can help me. I need to get this working. Here is what I am doing. I have a class called Object, it is set up like this: -- Object.h @interface Object : NSObject { NSNumber*objectID; NSNumber*mass;

Re: How to hide disclosure triangle in NSOutlineView [10.5]?

2008-09-19 Thread Corbin Dunn
On Sep 19, 2008, at 7:58 AM, Marc Respass wrote: Hi All, I have an outline view connected to a tree controller and I want to hide the disclosure triangle. I know that there is a data source delegate method, - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item, but w

How to hide disclosure triangle in NSOutlineView [10.5]?

2008-09-19 Thread Marc Respass
Hi All, I have an outline view connected to a tree controller and I want to hide the disclosure triangle. I know that there is a data source delegate method, - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item, but when I make my controller the data source of the ou

Re: UIElement app doesn't come to front

2008-09-19 Thread Memo Akten
thanks, that did it... On 19 Sep 2008, at 15:18, Fabian wrote: Try [NSApp activateIgnoringOtherApps:YES]; HTH. On Fri, Sep 19, 2008 at 12:28 PM, Memo Akten <[EMAIL PROTECTED]> wrote: I want to create a very simple little app that launches a window at startup, and then runs in the backgrou

Re: UIElement app doesn't come to front

2008-09-19 Thread Fabian
Try [NSApp activateIgnoringOtherApps:YES]; HTH. On Fri, Sep 19, 2008 at 12:28 PM, Memo Akten <[EMAIL PROTECTED]> wrote: > I want to create a very simple little app that launches a window at startup, > and then runs in the background with no dock and menu. > > I've created the app as a standard co

Re: Differences between -isEqual: and -isEqualTo:?

2008-09-19 Thread Jim Correia
On Sep 19, 2008, at 6:32 AM, Keith Duncan wrote: you [...] aren't allowed to mutate objects that are in collections Where is that documented? It is documented (parenthetically) in the documentation for the -hash method on NSObject. It is also called out in the Collections programming gui

Deleting Alias

2008-09-19 Thread Glover,David
Hi, I've tried using removeFileAtPath to delete an alias in the users home folder, but this doesn't work - it deletes any other file, just not aliases. I can't seem to find another method that will do the job. Any help or advice to resolve this would be greatly appreciated. Kind Regard

Re: Differences between -isEqual: and -isEqualTo:?

2008-09-19 Thread Keith Duncan
you [...] aren't allowed to mutate objects that are in collections Where is that documented? I've been doing this without consideration and nothing's blown up yet. How is a method to know if an object it's been passed is in a collection? Equally how are you to know if a method is going to

UIElement app doesn't come to front

2008-09-19 Thread Memo Akten
I want to create a very simple little app that launches a window at startup, and then runs in the background with no dock and menu. I've created the app as a standard cocoa app, extending NSApplication overriding init (set delegate to self) and applicationDidFinishLaunching to setup a time

Re: determining system idle time in leopard

2008-09-19 Thread Memo Akten
Thanks for the replies guys, I think all fingers point to the same method which is a few years old - but thats cool. I was wondering if it had been simplified in Leopard but seems not (I just didn't want to write out-of-date code) Cheers, Memo. On 18 Sep 2008, at 12:03, Memo Akten wrote:

Re: fullscreen quicktime across multiple monitors

2008-09-19 Thread Memo Akten
THanks, i'll look in to all that.. though I think for now NSView enterFullScreenMode:withOptions: may be quite good On 19 Sep 2008, at 05:13, Michael Ash wrote: On Wed, Sep 17, 2008 at 3:03 PM, Memo Akten <[EMAIL PROTECTED]> wrote: Hi All, I'd like to create a little app the runs a quickt

Re: Core data in private framework.

2008-09-19 Thread Chris Hanson
On Sep 18, 2008, at 8:41 PM, Scott Andrew wrote: I have a question. We are designing a private frame work to wrap our data handling. The framework is using Core Data with an SQL back end. However we get errors when loading data if the model file is not included in the application and is jus

Re: fullscreen quicktime across multiple monitors

2008-09-19 Thread Memo Akten
wow that looks perfect thanks.. On 19 Sep 2008, at 05:10, John C. Randolph wrote: On Sep 17, 2008, at 12:03 PM, Memo Akten wrote: Hi All, I'd like to create a little app the runs a quicktime movie (prores) fullscreen across multiple monitors. I think I can figure out the QTKit stuff, but

Re: Document context

2008-09-19 Thread Nathan Kinsinger
On Sep 19, 2008, at 12:05 AM, Apparao Mulpuri wrote: Hi, I am little confused with the method + (id)elementWithName:(NSString *)name in NSXMLNode. Is this method will create a new node with in the current document context or outside of any document context?. In the Xcode documentation, apple d

Transfer progress for objects fetched from a vended object

2008-09-19 Thread Mike Manzano
Let's say that I have a vended object that has a method that returns an NSArray whose contents are large. Let's say that I'm calling this method from another application over a network. As the transfer of the NSArray over the network might take a while, I'd like to display a progress bar. C