Re: File Sharing Within App

2009-01-07 Thread Bridger Maxwell
> > You might want to read your files as NSDatas and send those via your > networking solution, perhaps embedded in notifications, if they're not of > very big importance (security-wise. anybody can sniff notifications. > otherwise encrypt the data with OpenSSL). I don't know if distributed objec

Re: Removing CALayer after Animation

2009-01-07 Thread Bridger Maxwell
Hey, Is the animation your own subclass of CAAnimation? I am justing using CAKeyframeAnimation. TTFN Bridger On Tue, Jan 6, 2009 at 1:45 PM, Matt Long wrote: > Bridger, > > As far as I can tell there is nothing inherent in the CA API to do what you > want, however, KVC is available to you. When

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Rob Keniger
On 08/01/2009, at 3:16 PM, Kyle Sluder wrote: I'd disagree. I'd say that the proper way to do this is to implement a custom NSCell subclass (a la ImageAndTextCell). This is more in line with the framework: the cell is given an object value, which the cell represents by drawing into a view. T

Fwd: App Listener?

2009-01-07 Thread Chunk 1978
does this work with Dashboard? it seems that dashboard is a background application that's always open... On Thu, Jan 8, 2009 at 12:58 AM, David LeBer wrote: > > On 8-Jan-09, at 12:46 AM, Chunk 1978 wrote: > >> is it possible to set up an NSNotification to listen for launched >> apps? for exampl

Re: App Listener?

2009-01-07 Thread David LeBer
On 8-Jan-09, at 12:46 AM, Chunk 1978 wrote: is it possible to set up an NSNotification to listen for launched apps? for example, an running app would do something if Safari is opened, or if Dashboard is activated? Something like this? NSNotificationCenter * center = [[NSWorkspace sharedWork

Re: App Listener?

2009-01-07 Thread Jerry Krinock
On 2009 Jan, 07, at 21:46, Chunk 1978 wrote: is it possible to set up an NSNotification to listen for launched apps? for example, an running app would do something if Safari is opened, or if Dashboard is activated? NSWorkspaceDidLaunchApplicationNotification will tell you about it whenever

Re: Binding of "Object" and "Value" in NSPopupButtonCell

2009-01-07 Thread Jerry Krinock
On 2009 Jan, 07, at 17:35, Ken Thomases wrote: But the current rank should show even when a row is not selected, right? I think by using a Controller Key of selectedObject, all rows will show the rank of the selected employee, not the employee on that row. No, I don't recall having that

App Listener?

2009-01-07 Thread Chunk 1978
is it possible to set up an NSNotification to listen for launched apps? for example, an running app would do something if Safari is opened, or if Dashboard is activated? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Kyle Sluder
On Wed, Jan 7, 2009 at 11:51 PM, David wrote: > Amazingly difficult, but I have it working almost 2 different ways. I > created my own ImageAndTextCell class and handle my own drawing based on > some code from Dave Blanton. > I've also tried the NSAttributedString since that sounded potentially >

Re: NSUIHeartBeat gets stuck

2009-01-07 Thread Adam R. Maxwell
On Jan 6, 2009, at 12:07 AM, Adam R. Maxwell wrote: I have an application that starts and stops a spinning progress indicator. Start/stop is based on observing -[NSOperationQueue operations]; since I get KVO notifications on the queue's thread, I've been careful to start/stop the spinner

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread David
Amazingly difficult, but I have it working almost 2 different ways. I created my own ImageAndTextCell class and handle my own drawing based on some code from Dave Blanton. I've also tried the NSAttributedString since that sounded potentially cleaner, more powerful and generally useful. Argh. So I

Re: NSOutlineView indentation

2009-01-07 Thread Bill Monk
On Jan 7, 2009, James Walker wrote: Having the indentation affect the top level may be technically consistent, but I don't know why anyone would want it to work that way. Yes, I agree. Top-level items should stay near the left margin, and setting the indent to 0 should not cause top-le

Re: -[NSView window] returns nil if its NSTabView not selected

2009-01-07 Thread Quincey Morris
On Jan 7, 2009, at 19:36, Jerry Krinock wrote: In a view's -awakeFromNib, I often do some initializations which require the view's -window [1]. This worked fine until I put one of these views inside an NSTabView. Now, it fails if the tab containing the view is not selected when the nib i

Re: -[NSView window] returns nil if its NSTabView not selected

2009-01-07 Thread Jim Correia
On Jan 7, 2009, at 10:36 PM, Jerry Krinock wrote: In a view's -awakeFromNib, I often do some initializations which require the view's -window [1]. This worked fine until I put one of these views inside an NSTabView. Now, it fails if the tab containing the view is not selected when the ni

Re: Large Core Data memory allocations for small rows

2009-01-07 Thread Benjamin Rister
Hi Ben, Thanks for the response. I'm rearranging your email a bit to respond to pertinent bits in one place: The stack trace is: 5 4 CoreData -[_NSFaultingMutableSet objectEnumerator] 3 CoreData -[_NSFaultingMutableSet willRead] 2 CoreData -[NSManagedObjectContext(_NSInternalAdditi

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Rob Keniger
On 08/01/2009, at 7:49 AM, Jelle De Laender wrote: Did you try - (NSImage *)iconForFile:(NSString *)fullPath from NSWorkSpace? You can also have a look at Matt Gemmel's NSImage+QuickLook class, which produces icons that match the ones the Finder gets from QuickLook: http://mattgemmell.

-[NSView window] returns nil if its NSTabView not selected

2009-01-07 Thread Jerry Krinock
In a view's -awakeFromNib, I often do some initializations which require the view's -window [1]. This worked fine until I put one of these views inside an NSTabView. Now, it fails if the tab containing the view is not selected when the nib is loaded, because in this case -[NSView window] r

Re: NSScrollView refuses to scroll

2009-01-07 Thread Kyle Sluder
On Wed, Jan 7, 2009 at 4:13 PM, Jason Cox wrote: > Am i just completely missing the concept of what NSScrollView does? Scroll views are a pretty complicated beast. A scroll view has a document view, which is the thing being scrolled, and a clip view which ensures that only the appropriate po

Re: Can I call unbind: in finalize? Is it thread safe?

2009-01-07 Thread Kyle Sluder
On Wed, Jan 7, 2009 at 4:55 PM, Sean McBride wrote: > When do AppKit views call unbind:? You say you're familiar with mmalc's recommendations... but this question is explicitly addressed in the "Unbinding" section. I assume you want to call -unbind: so as to remove your view from observing a con

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Jelle De Laender
Did you try - (NSImage *)iconForFile:(NSString *)fullPath from NSWorkSpace? CodingMammoth Jelle De Laender i...@codingmammoth.com On 07 Jan 2009, at 22:42, David wrote: Hello,Is there a way to obtain the icon that finder uses to display for a file system object? Such things as the folder

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Rob Keniger
On 08/01/2009, at 10:39 AM, David wrote: Some of the cell classes seem very specialized. I had assumed that NSTextFieldCell could display an icon. Frequently there are outline views of files which display icons and names, yet there is no simple class which implements this functionality. Ins

Re: [iPhone] Search control like in App Store

2009-01-07 Thread Robert Marini
Not to sound too much like tech support, but did you wire up your instance of a UIWebView in your xib to an IBOutlet property in your view controller? I tried this scenario out juts now and it behaved as expected with // Implement viewDidLoad to do additional setup after loading the view

Re: NSOperation Question

2009-01-07 Thread Ken Thomases
On Jan 7, 2009, at 8:01 PM, Sandro Noel wrote: i meant main app. On 7-Jan-09, at 9:00 PM, Sandro Noel wrote: Thanks Ken i was not aware of run Loops, besides the one for the mail app I did not know i could just create one like that :) Actually, one is automatically created for every threa

a kind of auto complete behavior of NSTextview: how to do that?

2009-01-07 Thread Alex . Wang
Hi everyone.I am providing a code editor for an IDE. I am missing a feature in Xcode 2.X. That is: when user type a keyword in the text editor, the auto complete list "automatically" pop up. For example: Assuming we are going to type "NSWindow": after the user type 'N' 'S' 'W', the list shows up im

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Michael Ash
On Wed, Jan 7, 2009 at 7:39 PM, David wrote: > I must complain again. Cocoa does not have a clean well designed object > model. It seems haphazard. Someone needed a function here, but not there. > Apple doesn't go back and look at making general purpose classes and > methods. > Some of the cell cl

Re: NSOperation Question

2009-01-07 Thread Sandro Noel
i meant main app. On 7-Jan-09, at 9:00 PM, Sandro Noel wrote: Thanks Ken i was not aware of run Loops, besides the one for the mail app I did not know i could just create one like that :) i'll try that. Sandro Noel. On 7-Jan-09, at 8:42 PM, Ken Thomases wrote: On Jan 7, 2009, at 6:45 PM,

Re: NSOperation Question

2009-01-07 Thread Sandro Noel
Thanks Ken i was not aware of run Loops, besides the one for the mail app I did not know i could just create one like that :) i'll try that. Sandro Noel. On 7-Jan-09, at 8:42 PM, Ken Thomases wrote: On Jan 7, 2009, at 6:45 PM, Sandro Noel wrote: How would I go about having an operation sta

re: Large Core Data memory allocations for small rows

2009-01-07 Thread Ben Trumbull
p.s. But when these are faulted in, according to Instruments, Core Data allocates a GeneralBlock-528384 per record! Even if you naively preallocated a good chunk of memory for the strings, I can't imagine using more than 1-2KB per record, so 516KB is totally ridiculous. When I run Instrument

Re: Returning value from detached NSThread selector with multiple arguments.

2009-01-07 Thread Ken Thomases
On Jan 7, 2009, at 7:28 PM, John Cassington wrote: After testing, the dictionary concept works perfectly! Thanks! Careful! Unless you're synchronizing access to the mutable dictionary, this is not thread-safe. Even if it appears to work in some cases, it's likely to blow up in your face

Re: Returning value from detached NSThread selector with multiple arguments.

2009-01-07 Thread Graham Cox
On 8 Jan 2009, at 12:28 pm, John Cassington wrote: After testing, the dictionary concept works perfectly! Thanks! With regard to the originating thread retaining a reference to the dictionary, is there a way for the original thread to know when processing has completed on the secondary thread?

Re: NSOperation Question

2009-01-07 Thread Ken Thomases
On Jan 7, 2009, at 6:45 PM, Sandro Noel wrote: How would I go about having an operation stay alive as long as my application is alive, If this is what you want, then it's no longer an operation, it's just a thread. Don't use NSOperation for this. I use DiskAppearedCallback / DiskDisappe

Re: NSOperation Question

2009-01-07 Thread Nick Zitzmann
On Jan 7, 2009, at 5:45 PM, Sandro Noel wrote: I use DiskAppearedCallback / DiskDisappearedCallback from the DiskArbitration Framework in my application and I want the to be in their separate thread. How can i have the thread not quit as soon as the callback's are registered? The callba

Re: Binding of "Object" and "Value" in NSPopupButtonCell

2009-01-07 Thread Ken Thomases
On Jan 7, 2009, at 6:35 PM, Jerry Krinock wrote: On 2009 Jan, 06, at 19:19, Ken Thomases wrote: On another topic, you say you're binding "Content" with a Controller Key of "selectedObject" (which you define through a category as the first element of the array controller's selectedObjec

NSOutlineView indentation

2009-01-07 Thread James Walker
Is there any way to change the difference in indentation between levels in an NSOutlineView, without changing the indentation of the top level? Having the indentation affect the top level may be technically consistent, but I don't know why anyone would want it to work that way. I searched the

Re: Returning value from detached NSThread selector with multiple arguments.

2009-01-07 Thread John Cassington
After testing, the dictionary concept works perfectly! Thanks! With regard to the originating thread retaining a reference to the dictionary, is there a way for the original thread to know when processing has completed on the secondary thread? I would like my method to be run on a separate thread

Tiger vs Leopard Printing

2009-01-07 Thread David Blanton
I build my app with the MACOSX10.4u.sdk. When the following is executed: [[NSPrintOperation printOperationWithView:catalog] runOperationModalForWindow:mainWindow delegate:self didRunSelector:nil contextInfo:nil]; the Tiger and Leopard print panels are different. In Leopard you can selec

Re: Returning value from detached NSThread selector with multiple arguments.

2009-01-07 Thread Graham Cox
On 8 Jan 2009, at 12:13 pm, John Cassington wrote: Hi, I have a class (JCDataCollector) which I use to collect a large amount of data from the users machine. JCDataCollector has a publicly-accessible method named "collectData:usingFile:shouldLogOutput:". This method is very resource-intensive,

How can I draw a custom bezel/background for an NSSegmentedCell?

2009-01-07 Thread Jim Correia
I have an NSSegmentedControl for which I'd like to draw a custom background or bezel for the overall control. Normally I'd do this by overriding -drawWithFrame:iinView: or - drawInteriorWithFrame:inView: to do this. However, if I do this for NSSegmentedCell, I also bypass all the extra wor

Returning value from detached NSThread selector with multiple arguments.

2009-01-07 Thread John Cassington
Hi, I have a class (JCDataCollector) which I use to collect a large amount of data from the users machine. JCDataCollector has a publicly-accessible method named "collectData:usingFile:shouldLogOutput:". This method is very resource-intensive, and I would like to move it onto its own thread. So fa

NSOperation Question

2009-01-07 Thread Sandro Noel
Greetings! I've been using NSOperation in my applications and I enjoy it's simplicity. All my Operations go into a NSOperationQueue. How would I go about having an operation stay alive as long as my application is alive, This is what I want to do. I use DiskAppearedCallback / DiskDisappe

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread David
I must complain again. Cocoa does not have a clean well designed object model. It seems haphazard. Someone needed a function here, but not there. Apple doesn't go back and look at making general purpose classes and methods. Some of the cell classes seem very specialized. I had assumed that NSTextFi

Re: Convert GWorldPtr into a NSImage

2009-01-07 Thread Graham Cox
On 8 Jan 2009, at 10:27 am, Eric Gorr wrote: On Jan 7, 2009, at 11:31 AM, Daniel Kennett wrote: To further support this theory, take a look at this NSImage where I mistakenly only flipped half of my data - the garbled half of the image is from data with the wrong endian-ness: Well, I wr

Re: Binding of "Object" and "Value" in NSPopupButtonCell

2009-01-07 Thread Jerry Krinock
On 2009 Jan, 06, at 19:19, Ken Thomases wrote: I would think you would want "Content" to refer to the allowed ranks in their "raw" object form, not their string. So, don't use a value transformer here. You wouldn't bind "Content Objects" because it would just be the same as "Content". I

re: Large Core Data memory allocations for small rows

2009-01-07 Thread Ben Trumbull
We're running into a situation where Core Data is making very large memory allocations when faulting in small amounts of data. The entity has: - 2x Date - Int16 - 4x Int32 - Boolean - String - to-one relationship - String (in a subentity) - to-one relationship (in a subentity) -

Re: Convert GWorldPtr into a NSImage

2009-01-07 Thread Eric Gorr
On Jan 7, 2009, at 11:31 AM, Daniel Kennett wrote: To further support this theory, take a look at this NSImage where I mistakenly only flipped half of my data - the garbled half of the image is from data with the wrong endian-ness: Well, I wrote the code to change the pixel format from BGR

Custom tracking in a NSTextFieldCell

2009-01-07 Thread Eric Gorr
I need to do some custom mouse tracking in a NSTextFieldCell. Based on the documentation, when a cell is clicked, - (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView should be called. However, neither this method nor - (void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stop

Re: Cocoa Support for Mail

2009-01-07 Thread Torsten Curdt
> EDMessage had fallen into disrepair and would not build when I looked at it > last year. I updated the source and merged in SSL and authentication from > OPMessageServices, and turned it over to the original EDMessage team. The > updated source is now on the web at: > > http://www.mulle-kyberneti

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Rob Rix
Either make your own cell class, or use two columns for that. I’d recommend the latter due to simplicity, but it may not give you the look you’re going for. Sincerely, Rob On 7-Jan-09, at 5:36 PM, David wrote: Great! Thanks for the info. I hoped it was something simple. Next question thoug

Re: Manual Core Data schema migration in -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:...] without "document changed" error?

2009-01-07 Thread Barry Wark
On Wed, Jan 7, 2009 at 1:46 PM, sanchezm wrote: > NSDocument tracks the moving of the file and this is done after the code in > configurePersistentStore... is executed. > One way to possibly work around this is to delay the setting of the URL and > modification date. At the end of your configurePe

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread David
Great! Thanks for the info. I hoped it was something simple. Next question though... how do I set the icon (image) for a 1st column of an outline view and have it show text as well? I found an example using NSBrowserCell but that doesn't seem to work in an outline view. I can't find any other cell

Re: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability

2009-01-07 Thread Andrew Farmer
On 07 Jan 09, at 07:08, Parimal Das wrote: my app needs to extract finder icons in preview mode. i am using QLThumbnailImageCreate() to get those in 10.5 leopord i want my app to run on 10.4 Tiger also , but icon services api is filled with deprecated methods so how it is possible to write a

Re: Can I call unbind: in finalize? Is it thread safe?

2009-01-07 Thread Ron Lue-Sang
On Jan 7, 2009, at 1:55 PM, Sean McBride wrote: Hi all, Is it safe to call unbind: in finalize? Is unbind: thread-safe? Traditionally, Apple has recommended calling unbind: in a view's dealloc method. With GC one might be tempted to call it in finalize, but 1) finalize is discouraged in

[MEET] CocoaHeads-NYC meeting Thu 01/08

2009-01-07 Thread Andy Lee
The January meeting of CocoaHeads-NYC is Thursday Jan 8 (Elvis's birthday) from 6:00PM to 8:00PM at Tekserve, at 119 West 23rd between 6th and 7th . This month once again you're encouraged to bring Cocoa programming questions and see if any among us can help. Someti

Re: Dock menu item action isn't performed in modal state

2009-01-07 Thread Peter Ammon
On Jan 7, 2009, at 8:05 AM, Ondrej Valik wrote: Hello. I'm using delegate's applicationDockMenu: method for returning my custom dock menu. It has a single menu item. This menu item has its target/action properly set up and my dock menu delegate implements worksWhenModal method (returning

MEETING: Chicago CocoaHeads / CAWUG Tuesday Jan. 13th

2009-01-07 Thread Bob Frank
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group is holding our next meeting Tuesday, January 13th, at 7:00 PM at the Apple Store on Michigan Ave. Agenda: - Special Apple Store Presentation: Jason Fried, founder of 37 Signals - adjournment to O'Toole's

Re: Problem with AFP server Notification seek advice.

2009-01-07 Thread Sandro Noel
Is there any documentation available for this framework besides the Header files description ? Thanks you. Sandro Noel. On 7-Jan-09, at 9:39 AM, Alastair Houghton wrote: On 6 Jan 2009, at 16:58, Sandro Noel wrote: when a server is mounted, and it notifies that it is going offline, I get

Can I call unbind: in finalize? Is it thread safe?

2009-01-07 Thread Sean McBride
Hi all, Is it safe to call unbind: in finalize? Is unbind: thread-safe? Traditionally, Apple has recommended calling unbind: in a view's dealloc method. With GC one might be tempted to call it in finalize, but 1) finalize is discouraged in general 2) finalize implementations must be thread safe

Re: Cocoa Support for Mail

2009-01-07 Thread David Hoerl
Cocoa provides the NSMailDelivery class to support sending email from a Cocoa application. Is there an analog for receiving email? what is the best way for the application to receive emails? Look at EDMessage - for historical information look at this page: http://www.cocoadev.com/index.pl

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread j o a r
On Jan 7, 2009, at 1:42 PM, David wrote: Hello,Is there a way to obtain the icon that finder uses to display for a file system object? Such things as the folder icon for folders, PDF icon for pdfs etc. See: NSWorkspace j o a r ___ C

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Peter Ammon
On Jan 7, 2009, at 1:42 PM, David wrote: Hello,Is there a way to obtain the icon that finder uses to display for a file system object? Such things as the folder icon for folders, PDF icon for pdfs etc. You can use -[NSWorkspace iconForFile:] if you want to get a specific file's icon, r

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Rob Rix
Check out -[NSWorkspace iconForFile:] in the docs. Rob On 7-Jan-09, at 4:42 PM, David wrote: Hello,Is there a way to obtain the icon that finder uses to display for a file system object? Such things as the folder icon for folders, PDF icon for pdfs etc. Thanks

Re: Manual Core Data schema migration in -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:...] without "document changed" error?

2009-01-07 Thread sanchezm
NSDocument tracks the moving of the file and this is done after the code in configurePersistentStore... is executed. One way to possibly work around this is to delay the setting of the URL and modification date. At the end of your configurePersistentStore... implementation, do a call to

How to obtain icon displayed by Finder for a file

2009-01-07 Thread David
Hello,Is there a way to obtain the icon that finder uses to display for a file system object? Such things as the folder icon for folders, PDF icon for pdfs etc. Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: NSScrollView refuses to scroll

2009-01-07 Thread j o a r
On Jan 7, 2009, at 1:26 PM, j o a r wrote: // A suggestion The correct thing to do is typically not to start with a scroll view. If you simply drag out a text view from the library it comes wrapped in a scroll view already - No need to add a scroll view manually. If you need to set it up

Re: Scheduling an application

2009-01-07 Thread Scott Ribe
If you mean run a task at a particular time when your application is already running, see NSTimer. If you mean launch your application at a particular time, see launchd--although what you'd probably want is launchd to run a background app at login which would always run, monitoring the schedules,

Re: NSScrollView refuses to scroll

2009-01-07 Thread j o a r
On Jan 7, 2009, at 1:13 PM, Jason Cox wrote: If you, in IB, create a new window, throw a NSScrollView in there, set its autosizing to keep 100% width / height when you resize the superview, then put an NSTextView at the bottom edge of the scrollview, compile and resize the window up to hid

NSScrollView refuses to scroll

2009-01-07 Thread Jason Cox
Hey guys, If you, in IB, create a new window, throw a NSScrollView in there, set its autosizing to keep 100% width / height when you resize the superview, then put an NSTextView at the bottom edge of the scrollview, compile and resize the window up to hide the NSTextView it wont put a scr

Re: [iPhone] Search control like in App Store

2009-01-07 Thread Mohan Parthasarathy
Hi, I agree that IB is useful but sometimes does not work as expected (mostly because i am doing something wrong). I am new to Cocoa Application development and perhaps takes times to get used to it. Recently i was trying to use UIWebView (one of the views in my navigation hierarchy). And my view

Re: Python-Cocoa Development

2009-01-07 Thread Bill Bumgarner
On Jan 6, 2009, at 5:16 AM, Nascimento, Ronaldo M. wrote: I have spent some time developing in Obj-C and Cocoa, however most of my previous work was done in python. So I am trying to develop Cocoa (AppKit) stuff with Python and Xcode 3.1.2 but the documentation is sorely lacking. And if thi

Re: "Cannot finalize a class object"

2009-01-07 Thread Bill Bumgarner
On Jan 6, 2009, at 9:08 PM, Nick Zitzmann wrote: The first thing it does is it calls objc_startCollectorThread() at the top of main(). Then later on in main(), I call an object's class method. Shortly afterward, I get the strangest exception on the collector thread: *** +[CHException<0x103

Re: getting NSTableView -selectedColumn or -selectedCell

2009-01-07 Thread Corbin Dunn
howdy, There is no "selected cell" -- only a selected row or column, which can contain one or more cells. Do you mean the focused cell, as in tabb'ed into on SnowLeopard? Or, what are you trying to do? I may be able to offer advice. corbin On Jan 7, 2009, at 10:28 AM, Barton Wells wrote:

Re: Crash as NSPersistentDocument creates its persistence stack

2009-01-07 Thread Jerry Krinock
On 2009 Jan, 07, at 10:40, mmalc Crawford wrote: The error seems to correctly describe the problem... Department is in a separate model (MyDocument) that you must include in order for the entity to be found in: Yes, you're correct mmalc. I didn't watch that carefully enough, and this wa

Re: Accessing inputs in a quartz composition programatically

2009-01-07 Thread Matt Long
If you are using a QCView, use this: http://developer.apple.com/technotes/tn2005/tn2146.html If you are using Core Animation (i.e. QCCompositionLayer), try this blog post: http://www.cimgf.com/2008/09/24/core-animation-tutorial-core-animation-and-quartz-composer-qccompositionlayer/ and this

getting NSTableView -selectedColumn or -selectedCell

2009-01-07 Thread Barton Wells
I'm trying to get the selected cell of an NSTableView when selected by the user. I am using the delegate method tableViewSelectionDidChange: and within it have tried calling both - selectedColumn and I've tried -selectedCell. -selectedColumn always returns -1, and -selectedCell always retu

Dock menu item action isn't performed in modal state

2009-01-07 Thread Ondrej Valik
Hello. I'm using delegate's applicationDockMenu: method for returning my custom dock menu. It has a single menu item. This menu item has its target/action properly set up and my dock menu delegate implements worksWhenModal method (returning YES). So my menu item is enabled when my app is i

substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability

2009-01-07 Thread Parimal Das
Hi, my app needs to extract finder icons in preview mode. i am using QLThumbnailImageCreate() to get those in 10.5 leopord i want my app to run on 10.4 Tiger also , but icon services api is filled with deprecated methods so how it is possible to write a same app which will run on both 10.4 and 10

Accessing inputs in a quartz composition programatically

2009-01-07 Thread Jonathan Selander
Hi, I'm creating a simple application that displays a QC and is supposed to be able to switch composition, and to make this happen i first created a qtz with a "Composition Loader", because i thought it could be easy to just switch the input of the CL patch from the program. The problem i

Re: Quartz Composer For Games?

2009-01-07 Thread Chunk 1978
nice! thanks for the link :) On Wed, Jan 7, 2009 at 1:31 PM, Erik Buck wrote: > http://www.quartzcompositions.com/phpBB2/upload/details.php?file=378 > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or m

Re: Asyncronous message handling

2009-01-07 Thread Mohan Parthasarathy
On Wed, Jan 7, 2009 at 10:20 AM, Keary Suska wrote: > > On Jan 7, 2009, at 10:44 AM, Mohan Parthasarathy wrote: > > NSNotificationCenter? Object Delegation Pattern < >> http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_4.html#//

Re: Crash as NSPersistentDocument creates its persistence stack

2009-01-07 Thread mmalc Crawford
On Jan 7, 2009, at 9:56 AM, Jerry Krinock wrote: Problem ID number 6478155. Using the project as provided, you get the same error -- 2009-01-07 09:40:51.689 DepartmentAndEmployees[27205:10b] +entityForName: could not locate an entity named 'Department' in this model. whichever of Model

Re: Quartz Composer For Games?

2009-01-07 Thread Erik Buck
http://www.quartzcompositions.com/phpBB2/upload/details.php?file=378 ___ 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.co

Re: Asyncronous message handling

2009-01-07 Thread Keary Suska
On Jan 7, 2009, at 10:44 AM, Mohan Parthasarathy wrote: NSNotificationCenter? Object Delegation Pattern ? Key-Value Observatio

Re: Automatically filling an app with test data

2009-01-07 Thread Scott Ribe
> What I'm looking for is > some tool that reads the model of my app, takes some range for the > values of attributes and generates a bulk of data my app can read. I know of no such thing, but just wanted to comment that it sounds like a very useful utility--perhaps someone should create such a th

Re: Query on IPhone application

2009-01-07 Thread Robert Marini
Not necessarily, they don't have access to the system crash log but it's certainly possible to roll your own crash reports. For instance - http://www.restoroot.com/Blog/2008/10/18/crash-reporter-for-iphone-applications/ and http://www.restoroot.com/Blog/2008/10/20/crash-reporter-for-iphone-a

Re: Crash as NSPersistentDocument creates its persistence stack

2009-01-07 Thread Jerry Krinock
On 2008 Dec, 25, at 22:55, Jerry Krinock wrote: So, tomorrow I'm going to copy all of my old files to the new project and I expect that it will work again. Oh well, the project was in need of a renaming and a housecleaning anyhow. Just in case anyone else has this problem, be advised that

Re: Query on IPhone application

2009-01-07 Thread Clark Cox
On Wed, Jan 7, 2009 at 9:48 AM, Arnab Ganguly wrote: > Hi All, > I would like to develop IPhone application such when any application crashes > in IPhone, it would send the crash/error report to webserver through http > requests.Have you come accross any sort of similar application or atleast > ca

Re: Enum advice please

2009-01-07 Thread Quincey Morris
On Jan 7, 2009, at 03:12, Jeremy Pereira wrote: enum was added to C after typedef. When I first started learning C in the mid 80's (from K & R first edition), typedef already existed as a keyword but enum didn't. In fact, I don't think enum became an official part of C until the first ANS

Query on IPhone application

2009-01-07 Thread Arnab Ganguly
Hi All, I would like to develop IPhone application such when any application crashes in IPhone, it would send the crash/error report to webserver through http requests.Have you come accross any sort of similar application or atleast can you give me some pointers as how to start with. Thanks in adva

Quartz Composer For Games?

2009-01-07 Thread Chunk 1978
i've recently started studying Quartz Composer as i plan on eventually experimenting with animated GUIs for apps... in browsing, i don't see any mention about Quartz being used for authoring games... do game developers use Quartz Composer? or is there a more suitable industry standard IDE or dev a

Re: Asyncronous message handling

2009-01-07 Thread Mohan Parthasarathy
On Tue, Jan 6, 2009 at 8:12 PM, Keary Suska wrote: > > On Jan 6, 2009, at 11:14 AM, Mohan Parthasarathy wrote: > > Let us say that there are two objects A and B. >> >> 1) Object A produces some data >> 2) Object B consumes the data produced by object A >> >> When object B sends a message to objec

SetWindowModality Replacement

2009-01-07 Thread Russ
I'm still looking for a Cocoa replacement for SetWindowModality --- need to be able to change a dialog window modeless or modal for good reasons (this is a big tricky app, not a toy text editor). I tried calling [NSApp run] as a nested run loop to turn modeless, but NSApp stop:0 killed the dia

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-07 Thread David Duncan
On Jan 6, 2009, at 10:14 PM, Gordon Apple wrote: Try turning on garbage collection for CALayerEssentials and tell me if the composition layer runs. It doesn't here. That did it. There are some known bugs with Quartz Composer and Garbage Collection, but I'm not aware of this one. I would

Re: Works in main Thread, but not in background Thread

2009-01-07 Thread Nick Zitzmann
On Jan 7, 2009, at 7:57 AM, John Love wrote: Let me wrap this up by saying when myRoutine is called in my main thread, everything works fine .. but when called by my background thread (via [NSThread detachNewThreadSelector:toTarget:withObject:] it definitely does not work. There are a h

Re: Convert GWorldPtr into a NSImage

2009-01-07 Thread Daniel Kennett
On 7 Jan 2009, at 15:24, Graham Cox wrote: However if you need to flip each pixel's byte order you might not have much choice but to iterate over the buffer and do it by hand. It's still going to be much simpler than creating a data provider, etc. You've already got the data, all that othe

Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]

2009-01-07 Thread Jason Foreman
On Wed, Jan 7, 2009 at 9:43 AM, marc hoffman wrote: > > wow, that was indeed it. odd, i could have /sworn/ i had seen a separate > class method in the docs with a "shouldStart" parameter, and that this one > was supposed to not start it. teaches me to trust my memory ;P Well, your memory isn't *t

Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]

2009-01-07 Thread marc hoffman
Jason, The way you've allocated the connection, it should start automatically. You shouldn't need to call -start manually. This *might* be causing some issues. The documentation doesn't say not to call it on a connection that is already started, but there might be a bug. Try removing this ca

Re: Convert GWorldPtr into a NSImage

2009-01-07 Thread Eric Gorr
On Jan 7, 2009, at 10:24 AM, Graham Cox wrote: However if you need to flip each pixel's byte order you might not have much choice but to iterate over the buffer and do it by hand. It's still going to be much simpler than creating a data provider, etc. You've already got the data, all that

Re: Works in main Thread, but not in background Thread (modified)

2009-01-07 Thread Jason Foreman
Hi John, On Wed, Jan 7, 2009 at 9:01 AM, John Love <> wrote: > NSWorkspace *workSpace = [NSWorkspace sharedWorkspace]; > Let me wrap this up by saying when myRoutine is called in my main thread, > everything works fine .. but when called by my background thread (via > [NSThread detachN

Re: Strange problem of first access to variable

2009-01-07 Thread Vera Tkachenko
Sorry for unnecessary noise - problem was caused by release mode specific problem quite uncorrelated to this issue. -- With regards, Vera Tkachenko [v...@tkachenko.kiev.ua] [ICQ#230923300] [web http://vera.org.ua] ___ Cocoa-dev mailing list (C

Re: Works in main Thread, but not in background Thread (modified)

2009-01-07 Thread glenn andreas
On Jan 7, 2009, at 9:01 AM, John Love wrote: NSWorkspace *workSpace = [NSWorkspace sharedWorkspace]; NSArray *runningAppDictionaries = [workSpace launchedApplications]; Let me wrap this up by saying when myRoutine is called in my main thread, everything works fine .. bu

  1   2   >