Re: Trouble forking my project

2010-03-23 Thread Eli Bach
On Mar 23, 2010, at 6:48 PM, Graham Cox wrote: > I'm having a problem making settings in a new target apply in my code. I'm > sure this is really simple and I'm missing something obvious. > > The point is to permit me to release bugfixes to my existing codebase while > moving it forward in a m

Re: Trouble forking my project

2010-03-23 Thread Michael Ash
On Tue, Mar 23, 2010 at 8:48 PM, Graham Cox wrote: > I'm having a problem making settings in a new target apply in my code. I'm > sure this is really simple and I'm missing something obvious. > > The point is to permit me to release bugfixes to my existing codebase while > moving it forward in a

Re: Automating Photoshop CS4?

2010-03-23 Thread colors
Depending on how ambitious you are It is conceivable that you could build spidermonkey into your application and automate PhotoShop via javascript. You might even be able to find a way to make webkit run the javascript for you. Rich Collyer On Mar 23, 2010, at 9:31 PM, Jesper Storm Bache

Re: performFindPanelAction: in WebView

2010-03-23 Thread Jeff Johnson
Hi Gerriet. You're missing this, unfortunately: https://trac.webkit.org/browser/trunk/WebKit/mac/WebView/WebHTMLView.mm https://bugs.webkit.org/show_bug.cgi?id=3640 I think it's a rite of passage in using WebKit to discover this. ;-) Yes, the documentation has failed to mention anything for th

Re: Automating Photoshop CS4?

2010-03-23 Thread Jesper Storm Bache
You'll want to use AppleScript. There are two Adobe forums that you may want to use in addition to this general Cocoa forum: http://forums.adobe.com/community/photoshop/photoshop_scripting and (if you need to write your own plug-in): http://forums.adobe.com/community/photoshop/phot

Automating Photoshop CS4?

2010-03-23 Thread jyoung79
Just curious if there's any way to automate Adobe Photoshop CS4 with Cocoa/Objective-C? I'm new to this language. I know I can call NSAppleScript, but was just curious if there's another way to control the application? Thanks. Jay ___ Cocoa-dev mai

performFindPanelAction: in WebView

2010-03-23 Thread Gerriet M. Denkmann
The documentation says about performFindPanelAction: in WebView: "An action method that opens the Find menu and Find panel." In my app though, the only thing it does is beeping (Jump to Selection works, all other MenuItems are gray). The following code: id d = [ NSApp ta

Re: NSTreeController, NSBrowser image setting

2010-03-23 Thread Ken Thomases
On Mar 23, 2010, at 9:22 PM, Tony Romano wrote: > I'm using a NSTreeController and bindings to contain the data for a > NSBrowser. Data from my objects is being displayed fine. I want to add an > image to the entries in the browser. From what I gather, I need to implement > the willDisplayCe

NSTreeController, NSBrowser image setting

2010-03-23 Thread Tony Romano
I'm using a NSTreeController and bindings to contain the data for a NSBrowser. Data from my objects is being displayed fine. I want to add an image to the entries in the browser. From what I gather, I need to implement the willDisplayCell delegate method. The question I have is how do I get

Re: Trouble forking my project

2010-03-23 Thread Graham Cox
On 24/03/2010, at 12:43 PM, Greg Parker wrote: > In Xcode, you don't want a "User-Defined Setting". Try manipulating the > "Preprocessor Macros" setting instead. Ah, thank-you, that works no problem. On a related note, is there a simple way to conditionalise parts of nibs? Specifically, I h

Toolbar customizer crashes on Leopard when using menu delegate

2010-03-23 Thread Markus Spoettl
Hello, I've been running into a strange crash for a toolbar customizer that happens only on Leopard and works fine on Snow Leopard. My toolbar contains an item hosting a NSPopUpButton which has a menu. That menu contains regular items and a sub-menu which has its delegate assigned to the Fi

Re: How to hide new objects in a NSTableView?

2010-03-23 Thread Jerry Krinock
On 2010 Mar 23, at 12:13, Joanna Carter wrote: > So, I am now left thinking the only way around this is to insert an editing > object in a secondary MOC, then, upon saving, insert a second object in the > main MOC, copy the properties over from the editing object to the object in > the main MO

Re: Trouble forking my project

2010-03-23 Thread Fritz Anderson
On 23 Mar 2010, at 7:48 PM, Graham Cox wrote: > I'm having a problem making settings in a new target apply in my code. I'm > sure this is really simple and I'm missing something obvious. > > The point is to permit me to release bugfixes to my existing codebase while > moving it forward in a mor

Re: Trouble forking my project

2010-03-23 Thread Greg Parker
On Mar 23, 2010, at 5:48 PM, Graham Cox wrote: > I'm having a problem making settings in a new target apply in my code. I'm > sure this is really simple and I'm missing something obvious. > > The point is to permit me to release bugfixes to my existing codebase while > moving it forward in a mor

Re: Appropriate list for GameKit questions?

2010-03-23 Thread Roland King
Fritz Anderson wrote: On 23 Mar 2010, at 8:13 PM, Michael Rogers wrote: I'm having a few questions about GameKit -- is this an appropriate list for the subject? [There's nothing on lists.apple.com that specifically addresses this ...] The best forum — if you're willing to sign up as an i

Re: Appropriate list for GameKit questions?

2010-03-23 Thread Fritz Anderson
On 23 Mar 2010, at 8:13 PM, Michael Rogers wrote: > I'm having a few questions about GameKit -- is this an appropriate list for > the subject? [There's nothing on lists.apple.com that specifically addresses > this ...] The best forum — if you're willing to sign up as an iPhone developer — is

Appropriate list for GameKit questions?

2010-03-23 Thread Michael Rogers
I'm having a few questions about GameKit -- is this an appropriate list for the subject? [There's nothing on lists.apple.com that specifically addresses this ...] Michael -- Dr. Michael Rogers Angel Flight Pilot & Damfino Assistant Professor, Computer Science & Informati

Re: re-ordering the layers of NSView's subviews

2010-03-23 Thread Dave Carpeneto
Graham Cox wrote: On 24/03/2010, at 11:30 AM, Dave Carpeneto wrote: Hi all - I've got the following situation: * A 'parent' NSView, which in turn has a number of subviews * These subviews have been added via the [NSView addSubview:newView positioned:NSWindowAbove relativeTo:nil] method (s

Trouble forking my project

2010-03-23 Thread Graham Cox
I'm having a problem making settings in a new target apply in my code. I'm sure this is really simple and I'm missing something obvious. The point is to permit me to release bugfixes to my existing codebase while moving it forward in a more radical way for future versions. I duplicated my exist

Re: re-ordering the layers of NSView's subviews

2010-03-23 Thread Graham Cox
On 24/03/2010, at 11:30 AM, Dave Carpeneto wrote: > Hi all - I've got the following situation: > > * A 'parent' NSView, which in turn has a number of subviews > > * These subviews have been added via the [NSView addSubview:newView > positioned:NSWindowAbove relativeTo:nil] method (so each time

re-ordering the layers of NSView's subviews

2010-03-23 Thread Dave Carpeneto
Hi all - I've got the following situation: * A 'parent' NSView, which in turn has a number of subviews * These subviews have been added via the [NSView addSubview:newView positioned:NSWindowAbove relativeTo:nil] method (so each time a user adds a subview it's @ the top of the viewing list) *

Re: How to eliminate field editor from NSTextField?

2010-03-23 Thread Kyle Sluder
On Tue, Mar 23, 2010 at 4:52 PM, Tron Thomas wrote: > I tried that, and it did not work.  The field editor remains sitting on top > of the NSTextField. As I said, there are reasons views might refuse to resign first responder (in which case -makeFirstResponder: returns NO). Have you checked the

Re: How to eliminate field editor from NSTextField?

2010-03-23 Thread Tron Thomas
I tried that, and it did not work. The field editor remains sitting on top of the NSTextField. On Mar 23, 2010, at 16:39 o'clock, Kyle Sluder wrote: > On Tue, Mar 23, 2010 at 4:17 PM, Tron Thomas wrote: >> However, this desired behavior after the edit has completed is not achieved >> because,

Re: NSTextStorage insertion point

2010-03-23 Thread Gideon King
I had this problem too, and in the end, I found a solution which was to make sure I had completed my updates of the text, and in my textStorageDidProcessEditing: method, I add the following: [[NSRunLoop currentRunLoop] performSelector:@selector(updateSelectedRange:) target:self.editingView arg

Re: How to eliminate field editor from NSTextField?

2010-03-23 Thread Kyle Sluder
On Tue, Mar 23, 2010 at 4:17 PM, Tron Thomas wrote: > However, this desired behavior after the edit has completed is not achieved > because, when editing of the control begins, a field editor is assigned to > the control and the editing takes place in that field editor.  Once editing > is compl

Re: Remove/Disable NSPredicate from NSMutableSet?

2010-03-23 Thread Graham Cox
On 24/03/2010, at 7:27 AM, Robert Monaghan wrote: > How does one remove a NSPredicate from an NSMutableSet? > I want to reuse the NSMutableSet for another purpose, but I have to strip out > the Predicate that I assigned. > Passing "filterUsingPredicate:nil" causes an exception. Is there a way to

Re: Screen size in Dual monitor mode

2010-03-23 Thread Graham Cox
On 24/03/2010, at 2:07 AM, Shawn Erickson wrote: > As a result a union of all frames may be misleading/meaningless > because of large gaps where no monitor exists simply because of how > the user arranged the monitors. While the user can arrange them more or less as they wish, there won't be ga

How to eliminate field editor from NSTextField?

2010-03-23 Thread Tron Thomas
I have an NSTextField control that will display a context menu when someone right clicks on it. The context menu contains an item that can allow for editing of the control's text. The expectation is that once the edit if complete the control will revert to its default behavior in terms of disp

Re: Which iPhone Program?

2010-03-23 Thread Don Quixote de la Mancha
Luther, On Tue, Mar 23, 2010 at 11:25 AM, Luther Baker wrote: > I have the "company" license and can create multiple developer seats. > On the other hand, the company license allows a team of developers to create > certs, etc and deploy apps to the app store. With my company license, I can > log

Re: Standard input/output in Objective-C

2010-03-23 Thread Jens Alfke
On Mar 23, 2010, at 2:44 PM, Mikael Wämundson wrote: inputData = [fileHandle availableData]; inputString = [[NSString alloc] initWithData: inputData encoding:NSUTF8StringEncoding]; [aPerson setPersonsFirstName: inputString]; You could just call fgets and then convert the resulting C string

Re: Standard input/output in Objective-C

2010-03-23 Thread Mikael Wämundson
Thnx! Just changing the suffix to .mm and rebuilding worked and the library was found! Great! /Mikael 23 mar 2010 kl. 22.56 skrev Brian Postow: > > On Mar 23, 2010, at 5:44 PM, Mikael Wämundson wrote: > >> First: Yes, I've been looking around on the net to find an answer ;) >> >> I really l

Re: Standard input/output in Objective-C

2010-03-23 Thread Nick Zitzmann
On Mar 23, 2010, at 3:44 PM, Mikael Wämundson wrote: > My first attempt is of course to just use the cin/cout methods by importing > iostream.h, but when looking for the header file I find it deeply buried > (/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/H

Re: Standard input/output in Objective-C

2010-03-23 Thread Brian Postow
On Mar 23, 2010, at 5:44 PM, Mikael Wämundson wrote: > First: Yes, I've been looking around on the net to find an answer ;) > > I really like the C++ method of using cin/cout in the iostream.h when > communicating via the standard input/output (i.e. the Terminal). > > When doing this in Objec

Standard input/output in Objective-C

2010-03-23 Thread Mikael Wämundson
First: Yes, I've been looking around on the net to find an answer ;) I really like the C++ method of using cin/cout in the iostream.h when communicating via the standard input/output (i.e. the Terminal). When doing this in Objective-C it gets, to me, very complicated. Seems I'm going wrong som

ANN: Accessorizer 1.7 update includes delegate detection, sets @property attribute to assign

2010-03-23 Thread Kevin Callahan
ANNOUNCEMENT: Accessorizer 1.7 http://www.kevincallahan.org/software/accessorizer.html What's new in version V 1.7 • Added switch for "Assign delegates". When ON, Accessorizer will automatically select the assign property attribute and if overriding via @dynamic (or creating your own gett

Re: Remove/Disable NSPredicate from NSMutableSet?

2010-03-23 Thread Dave DeLong
filterUsingPredicate: modifies the container in place. Unless you created a copy of the set/array before filtering, you can't go back to how it was before. Cocoa doesn't have versioned collections. Dave On Mar 23, 2010, at 2:27 PM, Robert Monaghan wrote: > How does one remove a NSPredicate f

Remove/Disable NSPredicate from NSMutableSet?

2010-03-23 Thread Robert Monaghan
Hi Everyone, How does one remove a NSPredicate from an NSMutableSet? I want to reuse the NSMutableSet for another purpose, but I have to strip out the Predicate that I assigned. Passing "filterUsingPredicate:nil" causes an exception. Is there a way to do this? Or should I generate another NSMuta

Re: CoreData database sharing and migration

2010-03-23 Thread Ben Trumbull
On Mar 22, 2010, at 4:06 AM, Steve Steinitz wrote: > On 18/3/10, Ben Trumbull wrote: > >> there wasn't a good solution for multiple machines simultaneously >> accessing an SQLite db file (or most other incrementally updated >> binary file formats). By "good" I mean a solution that worked >> rel

NSTextStorage insertion point

2010-03-23 Thread Ben
Hi list. I've got an NSTextView subclass which implements the NSTextStorage delegate method -textStorageWillProcessEditing:. In that method I do syntax highlighting and also replace certain substrings with text attachments (a bit like Xcode's autocomplete placeholders). The problem is that the

Re: find panel buttons not enabling

2010-03-23 Thread kvic...@pobox.com
i have now verified (via an extremely trivial cocoa application) that the buttons in a Find panel are not enabled if the first responder is an NSTextView that appears in a sheet (which is the key window). note that the find functions (e.g., find next/previous, use selection for find) all work p

Re: Merge changes between two Managed Object Contexts

2010-03-23 Thread Ben Trumbull
If you saved the temporary MOC, then all you have to do is call -[NSManagedObjectContext mergeChangesFromContextDidSaveNotification:] on the main MOC with the save notification from the temporary MOC. It's moving unsaved changes around that's cumbersome. - Ben > Thank you Joanna, that was ver

Re: How to hide new objects in a NSTableView?

2010-03-23 Thread Joanna Carter
Hi Kyle > This isn't the recommended approach. It's recommended that you use a > scratch MOC for your data entry sheet, so that the object insertion is > seen as an atomic operation in the main MOC. Yes, I would agree and that is, in fact, what I was doing but that then meant that I couldn't Und

Re: How to hide new objects in a NSTableView?

2010-03-23 Thread Kyle Sluder
On Tue, Mar 23, 2010 at 11:27 AM, Joanna Carter wrote: > In the end, I had to use the same MOC for the "new object" sheet that I used > for the main browsing form. This isn't the recommended approach. It's recommended that you use a scratch MOC for your data entry sheet, so that the object inser

[MEET] Toronto Cocoaheads / tacow - April 13

2010-03-23 Thread Karl Moskowski
The next meeting of tacow/Toronto CocoaHeads will be held on Tuesday, April 13 at 6:30 PM at Ryerson University. Note that this meeting is one week later than our regular date. We'll be meeting in the Ryerson comp. sci. department's new Digital Media Zone (DMZ) at Yonge & Dundas. Up-to-date age

How to hide new objects in a NSTableView?

2010-03-23 Thread Joanna Carter
Hi folks So, now I have worked out how to manage Undo and Redo for adding and removing new managed objects from an NSTableView, fed by an NSArrayController. In the end, I had to use the same MOC for the "new object" sheet that I used for the main browsing form. Now, the only thing left, that i

Re: Which iPhone Program?

2010-03-23 Thread Luther Baker
I have the "company" license and can create multiple developer seats. I don't think the core difference between company and enterprise is in how many developer seats you create. Instead, I think the difference is in how your application is distributed. I understood an enterprise license to fit th

Re: applicationShouldTerminateAfterLastWindowClosed Document-based Project Help?

2010-03-23 Thread Bill Hernandez
On Mar 23, 2010, at 12:27 PM, Quincey Morris wrote: > There's quite a lot of flailing going on here. If something goes wrong, > randomly trying to solve a different problem isn't a great strategy. You are absolutely right on every one of your points, really on the money. I've been trying to le

Re: Which iPhone Program?

2010-03-23 Thread Nava Carmon
We have same problem, since in order to get the application be installed on the device a certificate that allows creating mobile provisioning profiles should be copied from one machine to another, which it not so effective, especially when you have a couple of team members... On Mar 16, 2010, a

Re: applicationShouldTerminateAfterLastWindowClosed Document-based Project Help?

2010-03-23 Thread Quincey Morris
On Mar 23, 2010, at 09:15, Bill Hernandez wrote: > If I do the following: > > ( 1 ) create a NON-document based Cocoa Project: > ( 2 ) add a button to the nib window, name it DONE > ( 3 ) Control Click and Drag from DONE to the Window and select performClose: > from the HUD > ( 4 ) Run and click

Re: Screen size in Dual monitor mode

2010-03-23 Thread Murat Konar
Shawn's right. Your screen area (made up of one or more screens) is likely to be non-rectangular, so the notion of a "whole screen size" is meaningless. There is no "whole screen", just a bunch of screens at arbitrary locations. _murat On Mar 23, 2010, at 8:07 AM, Shawn Erickson wrote: O

Re: Main thread crash

2010-03-23 Thread Jeremy Pereira
On 23 Mar 2010, at 16:17, Arun wrote: > How does NSZombies help in resolving the crash? > Can anyone explain please. http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html#SECFOUNDATION It was surprisingly hard to track down that link using Google. In the end I got it with the fo

Re: Another IKImageView question: Copying a region

2010-03-23 Thread Kyle Sluder
Please don't cross-post. You've already posted this to quartz-dev. --Kyle Sluder [not the moderator] On Tue, Mar 23, 2010 at 6:45 AM, Brian Postow wrote: > I'm not sure if ImageKit is more correctly a cocoa thing, or a Quartz thing, > so I'm asking this in both places. Sorry for the duplicate,

Re: Main thread crash

2010-03-23 Thread Kyle Sluder
On Tue, Mar 23, 2010 at 9:17 AM, Arun wrote: > How does NSZombies help in resolving the crash? This document explains: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html#SECFOUNDATION --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-de

Re: Main thread crash

2010-03-23 Thread Arun
How does NSZombies help in resolving the crash? Can anyone explain please. -Arun On Tue, Mar 23, 2010 at 7:10 PM, Scott Ribe wrote: > You've either over-released something that the timer refers to, so that > it's > not there when the timer fires. Or you have left the timer running after it > sho

applicationShouldTerminateAfterLastWindowClosed Document-based Project Help?

2010-03-23 Thread Bill Hernandez
I had posted this message at http://discussions.apple.com/thread.jspa?threadID=2374717&tstart=0 but thought I might have better luck here. If I do the following: ( 1 ) create a NON-document based Cocoa Project: ( 2 ) add a button to the nib window, name it DONE ( 3 ) Control Click and Drag from

Re: Attempt to nest an NSCollectionView fails.

2010-03-23 Thread Kevin Perry
I'm not sure this is really a usage case that I'd expect to be well tested, since it seems a little out of the ordinary. Anyway, which approach are you using for your prototype view? Is the view in the same nib, or have you factored it out into a separate nib, using the fact that NSCollectionVi

Re: Details and the concepts related to the Nib Window

2010-03-23 Thread James Bucanek
Jon Pugh wrote (Monday, March 22, 2010 11:22 PM -0700): I presume he means via a breakpoint in the debugger. Typically people put a breakpoint in init and don't see it being hit because init isn't called, initWithCoder is what is used when unarchiving object

Re: Screen size in Dual monitor mode

2010-03-23 Thread Shawn Erickson
On Tue, Mar 23, 2010 at 7:27 AM, Nikhil Khandelwal wrote: > In my application I am working with Dual monitor and I want to capture the > whole screen size. For this I am using NSScreen API to get the whole screen > size however this is returning me only with the screen resolution for single >

Re: Screen size in Dual monitor mode

2010-03-23 Thread Graham Cox
[NSScreen screens] with NSUnionRect() of all -frame properties. --Graham On 24/03/2010, at 1:27 AM, Nikhil Khandelwal wrote: > In my application I am working with Dual monitor and I want to capture the > whole screen size. For this I am using NSScreen API to get the whole screen > size howeve

Re: Another IKImageView question: Copying a region

2010-03-23 Thread Brian Postow
Addition: actually, I have found the copy(id) method, but when I call it, I get : CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 16 bits/pixel; 1-component color space; kCGImageAlphaPremultipliedLast; 2624 bytes/row. Which obviously doesn't happen when I do

Screen size in Dual monitor mode

2010-03-23 Thread Nikhil Khandelwal
Hi, In my application I am working with Dual monitor and I want to capture the whole screen size. For this I am using NSScreen API to get the whole screen size however this is returning me only with the screen resolution for single monitor. So is there any way to get the size of combined screen

Re: Three odd iPhone dev problems

2010-03-23 Thread Nava Carmon
I have a field with such a behavior in my application. I just colored the text in blue color, so it can be easily distinguished. Since I present texts in the table view, I invoke phone call when the user taps on the cell. For editing text table has to be in edit mode. But if you really want to s

Another IKImageView question: Copying a region

2010-03-23 Thread Brian Postow
I'm not sure if ImageKit is more correctly a cocoa thing, or a Quartz thing, so I'm asking this in both places. Sorry for the duplicate, If the question is inappropriate in one or the other list let me know and, well I guess I can't delete from a mailing, list, but I won't send more ImageKit que

Re: Main thread crash

2010-03-23 Thread Scott Ribe
You've either over-released something that the timer refers to, so that it's not there when the timer fires. Or you have left the timer running after it should have been. If it's not just that you, for instance, forgot to stop the timer when closing a window or dealloc'ing a window controller, the

Main thread crash

2010-03-23 Thread Arun
Hi All, My app is crashing with the following crash log. Not sure where is the problem. In the stack trace below i am not finding any calls in my code ? Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x4250 Crashed Thread: 0 Thread 0 Crashed: 0 l

Re: Details and the concepts related to the Nib Window

2010-03-23 Thread Chaitanya Pandit
> Also what does FilesOwner and First responder refers to. File's owner as the name suggests is the owner of the file, for example if your nib file is a window controller, the file's owner would be an object of class NSWindowController or your custom subclass of NSWindowController. > > Wheneve

Re: Refreshing NSArrayController after Undo/Redo

2010-03-23 Thread Joanna Carter
Hi folks Now which one of you here hasn't read the docs fully and properly before asking a question? :-) Jerry Krinock dropped me a private line and suggested that the title for this thread should have been "How to register Undo when syncing MOCs with mergeChangesFromContextDidSaveNotificati