Re: Does anyone else dislike Xcode 4?

2011-08-05 Thread Wade Tregaskis
> Well, one thing I just discovered in Xcode 4 and is already annoying me > highly is that the app somehow uses CoreAnimation so that now, even though > I'm running on battery, it forces the OS to use the Radeon video chipset > instead of the integrated Intel's one, which is less power hungry. T

Re: Launchd daemon and LSOpenApplication in Lion

2011-08-05 Thread Kyle Sluder
On Fri, Aug 5, 2011 at 10:04 PM, Jens Alfke wrote: > Yup. I’m frankly surprised it even used to work in 10.5 and 10.6. One unfortunate side effect (for me) of this change is that my 10.6-era shell function for checking if I'm currently at a console no longer works. I used to use `launchctl bslist

Re: cleanly support drag-to-trash for uninstall?

2011-08-05 Thread Jens Alfke
On Aug 5, 2011, at 8:04 AM, Carl Harris wrote: > I have a Cocoa app that (among other things) installs an agent in launchd > that runs in the background. The agent installation happens when the app is > first launched after install. > I'd like to support the drag-to-trash approach to uninstall

Re: Launchd daemon and LSOpenApplication in Lion

2011-08-05 Thread Jens Alfke
On Aug 5, 2011, at 1:52 PM, Michael Domino wrote: > I run a launched daemon process that in turn launches a Cocoa app in the > currently logged-in user's context via LSOpenApplication. > On 10.5 and 10.6, LSOpenApplication launches my Cocoa app with no problems. > On 10.7, I get the log entry:

Re: Symbol not found when compiling MM (ObjC++) file

2011-08-05 Thread Kyle Sluder
More useful info lives here: http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html --Kyle Sluder On Aug 5, 2011, at 7:57 AM, Alexander Hartner wrote: > I am constructing a framework consisting of C++, ObjectiveC and ObjectiveC++ > files. As part of the framework I have created a wrapper

Re: Symbol not found when compiling MM (ObjC++) file

2011-08-05 Thread Kyle Sluder
On Aug 5, 2011, at 7:57 AM, Alexander Hartner wrote: > > Logger.h > > #import > void ABSLogToggle (BOOL debug); > void ABSLog (NSString *format,...); [snip] > > Now when I import Logger.h and use it from a Objective C (.m) file everything > seems to work great. However as soon I as import

Re: NSTask vmrun

2011-08-05 Thread Rainer Standke
Thanks, that's what I was missing. Rainer On Aug 5, 2011, at 20:21, Stephen J. Butler wrote: > On Fri, Aug 5, 2011 at 10:15 PM, Rainer Standke wrote: >> args: ( >>"-T fusion", >>"-gu Administrator", >>"-gp Admin", >>runScriptInGuest, >>"\"/Users/rainer/Documents/Virtual Mac

Re: Symbol not found when compiling MM (ObjC++) file

2011-08-05 Thread Stephen J. Butler
On Fri, Aug 5, 2011 at 9:57 AM, Alexander Hartner wrote: > Now when I import Logger.h and use it from a Objective C (.m) file everything > seems to work great. However as soon I as import it and use it from a > Objective C++ (.mm) file I get the following link error: > > Ld [REMOVED] normal i386

Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-08-05 Thread R R Hornback
The desire is to have a bordered, movable, resizable window with a "hollow" interior--hollow meaning that the user can both see through the content area (transparent) and any mouse/keyboard events are sent to whatever window/application is below. This was easily accomplished prior to OS X 10.7

Re: Drawing text like Lion's Mail

2011-08-05 Thread Durango
Helvetica Neue? -- Matt On Wed, Aug 3, 2011 3:26 PM, Andre Masse wrote: >Thanks but after having done 10+ screenshots and doing side by side >comparisons, it clearly isn't Lucida Grande. It's very close to >Helvetica but the kerning is different. > >Andre Masse > >On 03/08/2011, at 17:52 , Thom

Symbol not found when compiling MM (ObjC++) file

2011-08-05 Thread Alexander Hartner
I am constructing a framework consisting of C++, ObjectiveC and ObjectiveC++ files. As part of the framework I have created a wrapper around NSLog so I can control and disable log messages centrally. I know there are better ways to do this, however right now I need to get this working and don't

Re: NSTask vmrun

2011-08-05 Thread Stephen J. Butler
On Fri, Aug 5, 2011 at 10:15 PM, Rainer Standke wrote: > args: ( >    "-T fusion", >    "-gu Administrator", >    "-gp Admin", >    runScriptInGuest, >    "\"/Users/rainer/Documents/Virtual Machines.localized/Windows XP > Professional v1.vmwarevm/Windows XP Professional v1.vmx\"", >    "", >    "

NSTask vmrun

2011-08-05 Thread Rainer Standke
Hello, I am trying to have a script executed on a virtual machine inside VM Fusion. This works with the vmrun command in Terminal, like so: /Library/Application\ Support/VMware\ Fusion/vmrun -T fusion -gu *** -gp *** runScriptInGuest "/Users/rainer/Documents/Virtual Machines.localized/Windows

Re: ARC and Singletons

2011-08-05 Thread Robert Monaghan
Submitted as an enhancement request.. :) Bug ID# 9908437 bob.. On Aug 2, 2011, at 5:29 PM, Dave Zarzycki wrote: > Karl, > > This is not on our todo list or any list that I know of. Please file a bug > report if this enhancement request is interesting to you. > > Thanks! :-) > > davez > >

Re: Menu Item Key Equivalent

2011-08-05 Thread koko
Lots of good information. It seems that what I want should work and as mentioned does work with unadorned numeric equivalents but does not with unadorned alphabet equivalents. So I am still searching but thanks to all. On Aug 5, 2011, at 1:14 AM, Quincey Morris wrote: > On Aug 4, 2011, at 23

Customizing UITableView cell dragging?

2011-08-05 Thread Rick Mann
Hi. We have a need to drag UITableViewCells from one position in a table to another, but instead of inserting between rows, we need it to replace a row. Is it possible to do this with the dragging support in iOS 4 and up? -- Rick ___ Cocoa-dev mail

NSImageView vs IKImageView

2011-08-05 Thread James Merkel
As a follow on to a previous thread on thumbnails, I finally settled on using Image I/O for creating a thumbnail from a file using a CGImageRef. However I could still use an NSImageView or an IKImageView to display the image. NSImageView requires converting the CGImageRef to an NSImage, with

Re: Launchd daemon and LSOpenApplication in Lion

2011-08-05 Thread Kyle Sluder
On Fri, Aug 5, 2011 at 1:52 PM, Michael Domino wrote: > Hi, > > I run a launched daemon process that in turn launches a Cocoa app in the > currently logged-in user's context via LSOpenApplication. Is there a reason you're not using a per-user launchd agent instead? --Kyle Sluder

Launchd daemon and LSOpenApplication in Lion

2011-08-05 Thread Michael Domino
Hi, I run a launched daemon process that in turn launches a Cocoa app in the currently logged-in user's context via LSOpenApplication. On 10.5 and 10.6, LSOpenApplication launches my Cocoa app with no problems. On 10.7, I get the log entry: "com.apple.launchd: System: This API can only be

August Cocoaheads - Silicon Valley Meeting

2011-08-05 Thread Tedd Fox
Thanks AGAIN to David Oster and Google, Inc., Silicon Valley - Cocoaheads 2.0! When: August 18, 2011 7-9PM Where: Bodega Bay Tech Talk Room 1950 Amphitheater Parkway Mountain View, California Directions are here: http://www.svmug.org/groups/svmug/wiki/6def0/BODEGA_BAY_ROOM.html We still

Re: Smooth resizing of a text field

2011-08-05 Thread Duncan Champney
On 20 Jul 2011, at 2:30 PM, Gabriel Roth wrote: > Subject: Smooth resizing of a text field > Date: July 20, 2011 3:30:56 PM EDT > To: Cocoa-dev@lists.apple.com > > > My application displays a non-editable text string in an NSTextField. When > the user adjusts a slider, the entire window and all

[Lion] IBOutlets, strong or weak?

2011-08-05 Thread Marc Respass
Hi All, I'm writing a Lion-only application and trying to do things more iOS-like (which appears to be the direction but regardless, I like it) by creating properties for my IBOutlets. I am using the latest Xcode 4.2 and ARC. With Xcode 4, I can drag from a control to the header and Xcode will

Re: Lion document opening: -[__NSArrayM insertObject:atIndex:]: object cannot be nil

2011-08-05 Thread Benjamin Rister
By the way, if any Apple people want to take a look, it's rdar://9896209 Best, br On Jul 25, 2011, at 2:17 PM, Benjamin Rister wrote: > We have an agent (UIElement) process, using GC, that can open a custom > document type. Other than it being an agent, there’s nothing particularly > special g

Re: Correct way to use contextInfo with ARC

2011-08-05 Thread Sean McBride
On Thu, 4 Aug 2011 06:36:02 -0500, Charles Srstka said: >Well, I can’t test this directly, since I haven’t been able to play with >ARC yet due to Apple not having graced us lowly second-class-citizen Mac >developers with the Xcode 4.2 beta clang is open source and supports ARC, so you don't reall

Re: Lion document opening: -[__NSArrayM insertObject:atIndex:]: object cannot be nil

2011-08-05 Thread Benjamin Rister
On Aug 5, 2011, at 10:19 AM, Sean McBride wrote: > I bet its related to "Resume", try turning it off from Sys Prefs or passing > "-ApplePersistenceIgnoreState YES" as an argument at launch. That’s an interesting idea, but unfortunately the agent is already running (and has been for a while) whe

Re: CoreData "I/O error for database: no such table"

2011-08-05 Thread Keary Suska
On Aug 4, 2011, at 2:30 PM, Nick Zitzmann wrote: > I tried searching around and found one other person who had the same > problem[1], but no one followed up with a good solution for existing > databases. > > I have an entity with a many-to-many relationship to itself, called "parents" > and "c

Re: [Q] including omp.h?

2011-08-05 Thread Sean McBride
On Sun, 31 Jul 2011 16:49:34 -0700, JongAm Park said: >Because gcc now supports OpenMP, we can use pragmas for OpenMP without >doing any special steps except for setting "Enable OpenMP" and "-fopenmp". I don't have an answer for you but are you aware that Apple is ditching gcc for clang, and

Re: Cocoa-dev Digest, Vol 8, Issue 597

2011-08-05 Thread Gary L. Wade
In the absence of something intrinsic, a developer could use something like the thread dictionary. I've not utilized it myself, but you could create a mutable dictionary where each key is a class name and the object would encapsulate that class's variables. - Gary L. Wade (Sent from my iPhone)

Re: Filter an array

2011-08-05 Thread Sean McBride
On Fri, 29 Jul 2011 09:09:43 -0700, Wade Tregaskis said: >> Further to earlier answers, bear in mind you've got no guarantee that >file extensions are correct, or even exist. Plus of course, you might >have both .jpg and .jpeg. You might well be better iterating through, >finding the UTI of each f

cleanly support drag-to-trash for uninstall?

2011-08-05 Thread Carl Harris
This seems like a topic that has probably been covered before, but I haven't been able to locate much in the way of prior relevant discussion. I have a Cocoa app that (among other things) installs an agent in launchd that runs in the background. The agent installation happens when the app is fi

Re: view:(QTMovieView *)view willDisplayImage:

2011-08-05 Thread douglas welton
Julius, QTMovieLayer is your friend. If you haven't already, check out the Core Animation QuickTime Layer sample code. I think you'll find it very helpful. regards, douglas On Aug 4, 2011, at 3:13 PM, julius wrote: > Hi, > I've been looking for a way to draw on top of a QT movie whose displ

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-08-05 Thread Sean McBride
On Thu, 28 Jul 2011 23:24:54 -0700, Jerry Krinock said: >With each major update of Mac OS X, Apple updates more classes to return >proper NSErrors, deprecating methods which either don't give errors or >give outmoded error representations. > >But what about NSKeyedArchiver and NSKeyedUnarchiver, i

Re: NSFileManager - a cautionary tale

2011-08-05 Thread Sean McBride
On Thu, 28 Jul 2011 13:38:49 -0700, Greg Parker said: >>> However, this method eventually calls mkdir, which fails with an >error if the directory already exists. This call to mkdir causes the App >Store reviewers to have conniptions, even though it certainly fails. The >failure of mkdir is interp

Re: Lion document opening: -[__NSArrayM insertObject:atIndex:]: object cannot be nil

2011-08-05 Thread Sean McBride
On Mon, 25 Jul 2011 14:17:44 -0400, Benjamin Rister said: >We have an agent (UIElement) process, using GC, that can open a custom >document type. Other than it being an agent, there’s nothing >particularly special going on. > >On Lion, when one of these documents are opened, the window appears, bu

Re: Cocoa-dev Digest, Vol 8, Issue 597

2011-08-05 Thread Martin Stanley
I agree with Greg. Class variables would/should participate fully in the objC inheritance mechanisms. This would be a natural extension to the language since it already has Class methods (and also encourages the use of properties). From a modelling point of view the distinction between a method

Re: Menu Item Key Equivalent

2011-08-05 Thread Andy Lee
On Aug 5, 2011, at 3:14 AM, Quincey Morris wrote: > On Aug 4, 2011, at 23:42 , Kyle Sluder wrote: > >> Not being an Aperture user myself: Is Aperture a Cocoa app? Do these key >> equivalents work if the main content view isn't first responder. Are they >> even assigned in the menus? >> >> FWIW

Re: Menu Item Key Equivalent

2011-08-05 Thread Bill Appleton
do you handle performKeyEquivalent: un your view? thx Bill On Fri, Aug 5, 2011 at 1:43 AM, Uli Kusterer wrote: > On 05.08.2011, at 08:49, Jens Alfke wrote: > > Photoshop has always used letter keys as commands to select tools, and > most other image editors on Mac follow suit, like Pixelma

Re: Menu Item Key Equivalent

2011-08-05 Thread Uli Kusterer
On 05.08.2011, at 08:49, Jens Alfke wrote: > Photoshop has always used letter keys as commands to select tools, and most > other image editors on Mac follow suit, like Pixelmator and (I think) Acorn. > I’m not sure if these show up in menus, though, although that seems like a > good idea, as it

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-08-05 Thread Wade Tregaskis
> I'm not sure really what the argument here is. What both of you seem to be > asserting is "you could construct any object from a file… that file might be > maliciously structured to construct objects that behave in evil ways". This > is true, but I'm not sure I see how this differs for *any*

Re: Menu Item Key Equivalent

2011-08-05 Thread Quincey Morris
On Aug 4, 2011, at 23:42 , Kyle Sluder wrote: > Not being an Aperture user myself: Is Aperture a Cocoa app? Do these key > equivalents work if the main content view isn't first responder. Are they > even assigned in the menus? > > FWIW we do have unadorned keys like Z to zoom in OmniGraffle. I