Re: premultiplying alpha

2010-05-05 Thread Thomas Davie
On 5 May 2010, at 06:05, Ken Ferry wrote: > > On Tue, May 4, 2010 at 9:30 AM, David Duncan wrote: > On May 4, 2010, at 8:57 AM, Thomas Davie wrote: > > > After much searching about, I discovered (contrary to what the docs say), > > that NSBitmapImageReps do not always premultiply their r/g/b

Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-05-05 Thread Marco Masser
On 28.04.2010, at 12:45, Marco Masser wrote: > > On 21.04.2010, at 05:47, Adam R. Maxwell wrote: > >> >> On Apr 19, 2010, at 8:56 AM, Marco Masser wrote: >> >>> I'm trying to implement a logging facility for an app that should behave >>> quite the same as OS X's Console.app in terms of displ

Re: Ticker Style Scrolling Text

2010-05-05 Thread Joachim Deelen
no, I'm using CATextLayer directly. It has a "string" attribute for NSString or NSAttributedString. And CA is available since 10.5. - Joachim Am 04.05.2010 um 02:11 schrieb Erik Benoist: > joachim- > quick question- do you convert your text to images when you use > CoreAnimation? And is CA

Custom NSPathControl

2010-05-05 Thread Graham Cox
I have a UI that is designed to break down a huge collection of items into a manageable subset that the user can work with at a time. Each item effectively has a sort of "path", that describes its hierarchy, not in terms of its location on disk, which is irrelevant, but its place in the whole bi

Communication between Cocoa and Carbon threads

2010-05-05 Thread Abhijeet Singh
Hi,I am new to Cocoa. Me and my team are working on an application for a scientific instrument. It is a Cocoa application in that user interface part is being developed using Cocoa. Now we have some lower level code that interacts with hardware and they are basically Carbon threads. Now our user

Weird "iPhone OS 4.0 Library" dialog popping up

2010-05-05 Thread Tino Rachui
I've installed beta 3 of the new iPhone OS 4 SDK. From time to time a dialog pops up now titled "iPhone OS 4.0 Library - To download this update, log in to Apple Developer Connection at connect.apple.com. Your login information will be sent securely." asking me for name and password. This looks

Re: Weird "iPhone OS 4.0 Library" dialog popping up

2010-05-05 Thread Stephane Sudre
The iPhone OS 4 SDK is probably under NDA. You should probably use the Developer Forums on the ADC website instead. On Wed, May 5, 2010 at 1:49 PM, Tino Rachui wrote: > I've installed beta 3 of the new iPhone OS 4 SDK. From time to time a dialog > pops up now titled "iPhone OS 4.0 Library - To d

Client/Server Design

2010-05-05 Thread Phillip Mills
I have ideas for a number of different applications that share a general architecture: use an iPhone as a remote data-collection front end to a Mac app that does more complicated processing, or to a general purpose application such as a spreadsheet or database, or to a variety of apps that each

Linking a specific controller instance to user defaults

2010-05-05 Thread Graham Cox
Another tricky problem... I have two instances of a particular view controller in my app - however it is not an NSViewController, merely an NSObject that happens to control a view. The two views are identical in function but have distinct uses within the app's GUI as a whole. The controllers h

UIPickerView and MKMapView

2010-05-05 Thread Gerriet M. Denkmann
I have an MKMapView to which I add a subview. This subview contains a UISegmentedControl, which can be clicked. And a UISlider which can be slidden (if such a word exists). And also a UIPickerView which stubbornly refuses to act. When I try to move the slot machine wheel, it does not budge, but

Re: NSSegmentedControl in a toolbar

2010-05-05 Thread Flavio Donadio
Jerry, I get the idea, but... On 05/05/2010, at 01:42, Jerry Krinock wrote: > I have an NSSearchField in a toolbar. It is a subview of an NSToolbarItem, > not of an NSView. You're right. I forgot the fact that you can only have NSToolbarItems (or subclasses of it) in a NSToolbar. I tried an

Re: NSSegmentedControl in a toolbar

2010-05-05 Thread Brian Postow
I've tried doing this myself. I don't think it can be done. at least not the way we want to do it. If you look in the Preview.app package, you can find all of the images that it uses in the contents/resources folder. Notice that it has buttonLeft.tiff, ButtonLeftAquar.tif, buttonLeftDark.tif,

Avoid drawing in half pixel

2010-05-05 Thread Gustavo Pizano
Hello all. I have a split view and inside I have custom views, in one subview Im drawing lines with a NSBezierPath, and when I move the divider I see sometimes the lines very thin some others no, so I know this last behavior its because Im drawing in half a pixel. I was reading the apple doc

Re: Avoid drawing in half pixel

2010-05-05 Thread Simone Tellini
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com

Authenticate NSFileManager Operations

2010-05-05 Thread koko
I am using - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPatherror:(NSError **)error to copy a framework to /Library/Frameworks. But first I use - (BOOL)removeItemAtPath:(NSString *)path error:(NSError **)error On my system all is well. On a user system I get

Re: Avoid drawing in half pixel

2010-05-05 Thread Gustavo Pizano
? On May 5, 2010, at 5:31 PM, Simone Tellini wrote: > > ___ > > 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

Re: Avoid drawing in half pixel

2010-05-05 Thread Simone Tellini
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com

Re: Avoid drawing in half pixel

2010-05-05 Thread Simone Tellini
On Wed, 05 May 2010 17:40:24 +0200, Simone Tellini wrote: > ___ > ok, this weird. If I reply with Thunderbird, the body of the message gets eaten by the mailing list server. I was saying: > I was reading the apple docs about this topic, and I tried a

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Ken Thomases
On May 5, 2010, at 10:32 AM, k...@highrolls.net wrote: > I am using > > - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString > *)dstPatherror:(NSError **)error > > to copy a framework to /Library/Frameworks. > > But first I use > > - (BOOL)removeItemAtPath:(NSString *)path error:(NSErr

Re: [[NSFileManager alloc] init] considered thread-safe

2010-05-05 Thread Michael Ash
On Wed, May 5, 2010 at 2:37 AM, Ken Ferry wrote: > On Tue, May 4, 2010 at 11:27 PM, Quincey Morris > wrote: > >> I'm not concerned with the issue of delegates. My question is whether a >> single (delegate-less) instance of NSFileManager can be used simultaneously >> from multiple threads, or wheth

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Mike Abdullah
Are you writing an installer? If so, don't. Use the system-supplied one. On 5 May 2010, at 16:32, k...@highrolls.net wrote: > I am using > > - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString > *)dstPatherror:(NSError **)error > > to copy a framework to /Library/Frameworks. > > But f

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Jerry Krinock
On 2010 May 05, at 08:32, k...@highrolls.net wrote: > How does one invoke authentication for NSFileManager operations? Mike Abdullah's answer is correct regarding installers. If you're not writing an installer, Easy way: Tell the Finder to do it with an Apple Event (thanks to Jean-Daniel Dup

Re: Avoid drawing in half pixel

2010-05-05 Thread Rob Ross
Try turning off anti-aliasing. Also see : http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Transforms/Transforms.html#//apple_ref/doc/uid/TP40003290-CH204-BCICIJAJ Rob On May 5, 2010, at 8:18 AM, Gustavo Pizano wrote: > Hello all. > > I have a split view

Re: Avoid drawing in half pixel

2010-05-05 Thread Gustavo Pizano
Hello Simone. So at the beginning of my drawRect, shall I use NSIntegralRect([self bounds])? Im gonna give a try... most probably I need antialiasing, because Im drawing some strings also in the view, so having no AA will affect them isn't it? G. On May 5, 2010, at 5:46 PM, Simone Tellini wr

Re: Authenticate NSFileManager Operations

2010-05-05 Thread koko
Don't = No I must ! (lol) -koko On May 5, 2010, at 9:51 AM, Mike Abdullah wrote: Are you writing an installer? If so, don't. Use the system-supplied one. On 5 May 2010, at 16:32, k...@highrolls.net wrote: I am using - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPathe

Re: Authenticate NSFileManager Operations

2010-05-05 Thread koko
Thanks for the direction Ken! -koko On May 5, 2010, at 9:51 AM, Ken Thomases wrote: On May 5, 2010, at 10:32 AM, k...@highrolls.net wrote: I am using - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPatherror:(NSError **)error to copy a framework to /Library/Frameworks.

Re: Authenticate NSFileManager Operations

2010-05-05 Thread koko
I was using PackageMaker and it installed the framework. In a second step to install an adobe air application the installer failed and that is why I went to roll my own. -koko On May 5, 2010, at 9:51 AM, Mike Abdullah wrote: Are you writing an installer? If so, don't. Use the system-suppl

Re: Avoid drawing in half pixel

2010-05-05 Thread Gustavo Pizano
from apps docs "During layout, make sure views and images are positioned on integral pixel boundaries." this is what Im doing wrong I think... the problem is how to correct it, because when I resize the splitview of course its not staying in a integral pixel.. thats when I see the lines bigger

Re: Avoid drawing in half pixel

2010-05-05 Thread Simone Tellini
On Wed, 5 May 2010 17:52:53 +0200, Gustavo Pizano wrote: > So at the beginning of my drawRect, shall I use NSIntegralRect([self > bounds])? yes, and use the resulting rect's origin as reference point for your drawing. > Im gonna give a try... most probably I need antialiasing, because Im > dr

Re: Weird "iPhone OS 4.0 Library" dialog popping up

2010-05-05 Thread Fritz Anderson
On 5 May 2010, at 6:49 AM, Tino Rachui wrote: > I've installed beta 3 of the new iPhone OS 4 SDK. From time to time a dialog > pops up now titled "iPhone OS 4.0 Library - To download this update, log in > to Apple Developer Connection at connect.apple.com. Your login information > will be sent

Re: UIPickerView and MKMapView

2010-05-05 Thread Fritz Anderson
On 5 May 2010, at 8:25 AM, Gerriet M. Denkmann wrote: > I have an MKMapView to which I add a subview. I have never succeeded at adding views to MKMapView, nor ever seen it succeed. The If you need to add controls, you should enclose them and the map view in a wrapper view. — F __

Re: Avoid drawing in half pixel

2010-05-05 Thread Gustavo Pizano
On May 5, 2010, at 6:01 PM, Simone Tellini wrote: > On Wed, 5 May 2010 17:52:53 +0200, Gustavo Pizano > wrote: > >> So at the beginning of my drawRect, shall I use NSIntegralRect([self >> bounds])? > > yes, and use the resulting rect's origin as reference point for your > drawing. > >> Im gon

Custom view as a menu item

2010-05-05 Thread Nava Carmon
Anyone? On May 4, 2010, at 10:18 AM, Nava Carmon wrote: > Hi, > > I need to implement a menu that looks and feels like that of spotlight: with > a search field as a first item and other items will be filled from some xml > file on fly. Are there some examples/ideas on how to do it? > > Thank

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Fritz Anderson
On 5 May 2010, at 10:57 AM, k...@highrolls.net wrote: > I was using PackageMaker and it installed the framework. In a second step to > install an adobe air application the installer failed and that is why I went > to roll my own. To put it _very_ charitably, PackageMaker has quite a few subtle

Re: Custom view as a menu item

2010-05-05 Thread Dave DeLong
-[NSMenuItem setView:] ? http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSMenuItem_Class/Reference/Reference.html#//apple_ref/doc/uid/2265-SW1 Dave On May 5, 2010, at 10:17 AM, Nava Carmon wrote: > Anyone? > > On May 4, 2010, at 10:18 AM, Nava C

Re: Avoid drawing in half pixel

2010-05-05 Thread Corbin Dunn
On May 5, 2010, at 8:18 AM, Gustavo Pizano wrote: > Hello all. > > I have a split view and inside I have custom views, in one subview Im drawing > lines with a NSBezierPath, and when I move the divider I see sometimes the > lines very thin some others no, so I know this last behavior its bec

Re: Custom NSPathControl

2010-05-05 Thread Corbin Dunn
On May 5, 2010, at 4:20 AM, Graham Cox wrote: > I have a UI that is designed to break down a huge collection of items into a > manageable subset that the user can work with at a time. Each item > effectively has a sort of "path", that describes its hierarchy, not in terms > of its location on

Re: NSSegmentedControl in a toolbar

2010-05-05 Thread Quincey Morris
On May 5, 2010, at 07:00, Flavio Donadio wrote: > Yes, I could do it in IB, if only I knew how to put the labels below each > segment, which is my ultimate goal here. And that points to your real problem -- what you want *isn't* a segmented control. Segment controls have their segment labels in

Re: Client/Server Design

2010-05-05 Thread Greg Guerin
Phillip Mills wrote: I've read the notorious Technical Note TN2152, "iPhone OS does not currently provide a direct way for third party developers to transfer data between the user's computer and their device," but I assume common workarounds are in place. Obviously I could follow the not

Re: Custom NSPathControl

2010-05-05 Thread Quincey Morris
On May 5, 2010, at 04:20, Graham Cox wrote: > So is using NSPathControl even possible for this, or would I just be better > off writing a complete new control from scratch? NSPathControl does some neat > things like fading overlong text within a subcell that I could use, as well > as displaying

Re: Linking a specific controller instance to user defaults

2010-05-05 Thread Quincey Morris
On May 5, 2010, at 05:42, Graham Cox wrote: > The problem should be obvious - how to ensure that each instance of the > controller can use a specific unique key in the user defaults. Creating a > unique key is easy, but at load time how to calculate the exact same key for > the specific instanc

Re: ScriptingBridge Commands

2010-05-05 Thread has
John Nairn wrote: > I have been using ScriptingBridge to script my AppleScriptable Cocoa > app using Python and Ruby. Today I noticed that commands defined on > the main application do not work with error message that the > application has no such attribute. I checked the header file created

Re: NSSegmentedControl in a toolbar

2010-05-05 Thread Brian Postow
I should mention that what I did is that I used a segmented control, and then used the single under the control label, but used spaces and centering to make it LOOK like it had two labels, even though it really only has one label... so instead of having "next" under one arrow and "prev" under t

Re: Client/Server Design

2010-05-05 Thread Jens Alfke
On May 5, 2010, at 5:27 AM, Phillip Mills wrote: > I have ideas for a number of different applications that share a general > architecture: use an iPhone as a remote data-collection front end to a Mac > app that does more complicated processing, or to a general purpose > application such as a

Re: Weird "iPhone OS 4.0 Library" dialog popping up

2010-05-05 Thread Tino Rachui
Ok I'm calm again. Thanks for the answers folks. Regards, Tino Am 05.05.2010 um 18:03 schrieb Fritz Anderson: > On 5 May 2010, at 6:49 AM, Tino Rachui wrote: > >> I've installed beta 3 of the new iPhone OS 4 SDK. From time to time a dialog >> pops up now titled "iPhone OS 4.0 Library - To down

Re: [[NSFileManager alloc] init] considered thread-safe

2010-05-05 Thread Jens Alfke
On May 5, 2010, at 8:50 AM, Michael Ash wrote: >> Delegates are the only reason the doc says anything other than "go nuts". >> This is what both Jens and I were trying to say. > > Is this true for all OS X versions, for 10.6+, or some other combination? For all, I think, although the issue doe

Re: Communication between Cocoa and Carbon threads

2010-05-05 Thread Jens Alfke
On May 4, 2010, at 10:30 PM, Abhijeet Singh wrote: > I have read in Mac OSX Technology overview that we can integrate Carbon with > Cocoa application. So can anybody suggest what are the possible ways to send > message from Cocoa thread to Carbon thread in an Cocoa Application. There’s really

Re: [[NSFileManager alloc] init] considered thread-safe

2010-05-05 Thread Michael Ash
On Wed, May 5, 2010 at 2:29 PM, Jens Alfke wrote: > > On May 5, 2010, at 8:50 AM, Michael Ash wrote: > >>> Delegates are the only reason the doc says anything other than "go nuts". >>>  This is what both Jens and I were trying to say. >> >> Is this true for all OS X versions, for 10.6+, or some ot

Re: Custom NSPathControl

2010-05-05 Thread Corbin Dunn
On May 5, 2010, at 10:20 AM, Quincey Morris wrote: > On May 5, 2010, at 04:20, Graham Cox wrote: > >> So is using NSPathControl even possible for this, or would I just be better >> off writing a complete new control from scratch? NSPathControl does some >> neat things like fading overlong text

Re: NSSegmentedControl in a toolbar

2010-05-05 Thread Flavio Donadio
Quincey, Now, that's the kind of answer I needed, even if it doesn't really get me where I want! At least, it stops me from pursuing something too difficult, impossible or undesirable. On 05/05/2010, at 14:17, Quincey Morris wrote: > And that points to your real problem -- what you want *isn'

Re: Client/Server Design

2010-05-05 Thread Phillip Mills
On 2010-05-05, at 2:24 PM, Jens Alfke wrote: > While the device is docked the user can use iTunes to (clumsily) transfer > files between the Mac filesystem and the app’s Documents folder. That seems so basic (without the 'clumsy') that I have trouble believing that it hasn't existed forever.

Re: NSSegmentedControl in a toolbar

2010-05-05 Thread Brian Postow
On May 5, 2010, at 2:57 PM, Flavio Donadio wrote: > Quincey, > > > Now, that's the kind of answer I needed, even if it doesn't really get me > where I want! At least, it stops me from pursuing something too difficult, > impossible or undesirable. > > On 05/05/2010, at 14:17, Quincey Morris w

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Seth Willits
On May 5, 2010, at 8:49 AM, Ken Thomases wrote: > Another technique is outlined in the BetterAuthorizationSample sample code: > > http://developer.apple.com/mac/library/samplecode/BetterAuthorizationSample/Introduction/Intro.html I'm just going to come out and say it, that I just could not unde

Core Data: *Really* Automatic Migration : Span Multiple Versions

2010-05-05 Thread Jerry Krinock
Say that a Core Data document-based app package contains: model version 1 mapping model 1->2 model version 2 mapping model 2->3 model version 3 It seems to me that a document created when version 1 was current will not be openable by the latest version of the app, at least with the 10.5 SDK, bec

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Kyle Sluder
On Wed, May 5, 2010 at 12:52 PM, Seth Willits wrote: > I'm just going to come out and say it, that I just could not understand what > the heck that code was doing and why. I read everything twice. It's a > bajillion lines of sample code, and since *we all know how much you can trust > Apple sam

Loading iPhone bundle in Mac OS X application

2010-05-05 Thread Csaba Trucza
Hello, I want to examine the classes in a bundle built for iPhone in a desktop application. Right now I am stuck at loading the iPhone bundle in the Mac OS X application. I tried loading with NSBundle load, but it complains of incompatible architectures. As far as I know the otest unit testing app

CoreData Object with transient attributes faulting after sync

2010-05-05 Thread Tom Fewster
I have a CoreData application which is using SyncServices (via NSPersistentStoreCoordinatorSyncing). A couple of entities contain transient attributes (transient values are not synced). The sync works fine & as expected. However, when the managed object context is reloaded after the sync is com

Using a keyboard to push a button

2010-05-05 Thread Benjamin Navarro
Hi, I've just realized my first graphic application in Cocoa. It works great, there are 3 textField and 2 static text and when I push a button, the program calculate the two values to put in the static texts using the text fields. My problem is that I have no idea how can I use the "Enter" keybo

Change background image in select behavior in the NSToolbarItem

2010-05-05 Thread Junio Gonçalves Vitorino
Hi everyone, I'd like know if i can change the background image of select behavior when i click in a NSToolbarItem. An example of the i wanna is the AppZapper toolbar, I'd like put a image with a closed square more rounded. That's possible? -- Atenciosamente, Cordially Junio Vitorino http://www

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Jeff Kelley
Be sure NOT to redistribute the Adobe AIR framework unless you have prior written permission from Adobe. Jeff Kelley slaun...@umich.edu Campus Computing Sites Information and Technology Services University of Michigan On May 5, 2010, at 11:57 AM, k...@highrolls.net wrote: > I was using PackageM

EPS image in NSScrollView

2010-05-05 Thread jyoung79
Hoping someone can steer me in the right direction. I'm not very good with Objective-C, but I'm trying to view an EPS image within a scroll window. When making the window bigger, I'd like the EPS to enlarge. For example, I'd like the width of the EPS to show in the scroll window and when the

Re: Loading iPhone bundle in Mac OS X application

2010-05-05 Thread Bill Bumgarner
On May 4, 2010, at 11:26 PM, Csaba Trucza wrote: > As far as I know the otest unit testing application runs as a command line > tool (so I assume it is a Mac OS X application) and somehow manages to load > the iPhone bundles. > > Any ideas? otest doesn't load the bundle at all. It examines the

Re: ScriptingBridge Commands

2010-05-05 Thread has
On May 5, 2010, at 7:45 PM, John Nairn wrote: > My main reason to use SB is that is is there be default. I find that a > surprising (maybe) percentage of my users will balk at anything that requires > installation of something (even if free). Yep, it's always nice when frequently used dependenc

Re: Loading iPhone bundle in Mac OS X application

2010-05-05 Thread Kyle Sluder
On Tue, May 4, 2010 at 11:26 PM, Csaba Trucza wrote: > I want to examine the classes in a bundle built for iPhone in a desktop > application. You can't. You would be trying to load ARM code into an Intel process. > As far as I know the otest unit testing application runs as a command line > tool

Re: Loading iPhone bundle in Mac OS X application

2010-05-05 Thread Bill Bumgarner
On May 5, 2010, at 1:13 PM, Kyle Sluder wrote: > It tests the code that was built for the simulator. See here for more > information:http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/135-Unit_Testing_Applications/unit_testing_applications.html What Kyle

Re: Loading iPhone bundle in Mac OS X application

2010-05-05 Thread Chris Hanson
You're thinking of otool, not otest. OCUnit's otest does load bundles, but it doesn't open (say) ARM bundles on Intel-based Macs. You can't load a bundle for one platform on another. They're different platforms... -- Chris On May 5, 2010, at 1:10 PM, Bill Bumgarner wrote: On May 4, 2

Re: Using a keyboard to push a button

2010-05-05 Thread Seth Willits
On May 5, 2010, at 3:46 AM, Benjamin Navarro wrote: > Hi, I've just realized my first graphic application in Cocoa. It works great, > there are 3 textField and 2 static text and when I push a button, the program > calculate the two values to put in the static texts using the text fields. > My p

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Seth Willits
On May 5, 2010, at 1:01 PM, Kyle Sluder wrote: >> I'm just going to come out and say it, that I just could not understand what >> the heck that code was doing and why. I read everything twice. It's a >> bajillion lines of sample code, and since *we all know how much you can >> trust Apple sampl

Re: Using a keyboard to push a button

2010-05-05 Thread Jens Alfke
On May 5, 2010, at 3:46 AM, Benjamin Navarro wrote: > My problem is that I have no idea how can I use the "Enter" keyboard key to > press the button (make a kind of shortcut). In Interface Builder, select the button and then use the Attributes inspector to set its key equivalent. (Click the b

Re: Custom view as a menu item

2010-05-05 Thread Nava Carmon
thanks Dave! On May 5, 2010, at 7:21 PM, Dave DeLong wrote: > -[NSMenuItem setView:] ? > > http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSMenuItem_Class/Reference/Reference.html#//apple_ref/doc/uid/2265-SW1 > > Dave > > On May 5, 2010, at 10:1

Are there any tools or techniques for detecting / debugging retain-cycles?

2010-05-05 Thread Michael A. Crawford
-Michael ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.a

Re: Windows following the menubar in Cocoa

2010-05-05 Thread Eric Gorr
On May 3, 2010, at 6:48 PM, Murat Konar wrote: > > On May 3, 2010, at 3:31 PM, Eric Gorr wrote: > >> Is there a way to configure a Cocoa window so it will follow the menubar to >> another display? > > Is it even a good idea? Probably not. However, there is at least one other situation whe

Re: Change background image in select behavior in the NSToolbarItem

2010-05-05 Thread Junio Gonçalves Vitorino
Doesn't exist some way or i'm speaking bullshit. 2010/5/5 Junio Gonçalves Vitorino > Hi everyone, > > I'd like know if i can change the background image of select behavior when > i click in a NSToolbarItem. An example of the i wanna is the AppZapper > toolbar, I'd like put a image with a closed

Re: Windows following the menubar in Cocoa

2010-05-05 Thread Lee Ann Rucker
It does? That's awesome. I think putting things back where the user put them is a good reason all by itself; I always hate it when I need to move my work laptop somewhere, because all my windows from the big monitor get squished onto the little one and reorganized. Alas, my work laptop won'

Re: Change background image in select behavior in the NSToolbarItem

2010-05-05 Thread Kyle Sluder
2010/5/5 Junio Gonçalves Vitorino : > Doesn't exist some way or i'm speaking bullshit. Huh? Are you bumping this thread or something? If someone feels like responding, they will respond. Though I must say it would help your chances of getting a response if you explained what you wanted better. Ma

Re: Using a keyboard to push a button

2010-05-05 Thread Seth Willits
On May 5, 2010, at 2:05 PM, Jens Alfke wrote: > In Interface Builder, select the button and then use the Attributes inspector > to set its key equivalent. (Click the box to the right of “Key Equiv.:” and > press the Enter key.) On May 5, 2010, at 2:03 PM, Seth Willits wrote: > Set the action

iPhone resource cache - memory question

2010-05-05 Thread Philip Mobley
I am designing a slightly smarter resource cache that purges less frequently used resources instead of a purge all when getting an UIApplication delegate "applicationDidReceiveMemoryWarning:" message. I know the target (currently) is 20 MBs (although that could change with future hardware). Th

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Dave Keck
> Which makes me wonder why Apple doesn't make an API for doing it "the right > way" easily? :-) I'd be disappointed if this didn't happen in 10.7. I'm hoping for a kind of AEWP that handles all of the launchd shenanigans for you, and only exec()s if the codesigning bits check out. __

Re: iPhone resource cache - memory question

2010-05-05 Thread David Duncan
On May 5, 2010, at 4:27 PM, Philip Mobley wrote: > I am designing a slightly smarter resource cache that purges less frequently > used resources instead of a purge all when getting an UIApplication delegate > "applicationDidReceiveMemoryWarning:" message. I know the target (currently) > is 20

Re: Authenticate NSFileManager Operations

2010-05-05 Thread koko
To what does AEWP decode? On May 5, 2010, at 5:33 PM, Dave Keck wrote: Which makes me wonder why Apple doesn't make an API for doing it "the right way" easily? :-) I'd be disappointed if this didn't happen in 10.7. I'm hoping for a kind of AEWP that handles all of the launchd shenanigans for

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Dave Keck
AuthorizationExecuteWithPrivileges ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Su

Re: NSSegmentedControl in a toolbar [SOLVED]

2010-05-05 Thread Flavio Donadio
Quincey, Brian and Graham, I tried one last time, setting my toolbar in pure code. I started from the SimpleToolbar sample that comes with the XCode tools. And it works! There's a remaining bug: the label positions are wrong in the toolbar customization palette. The code is here: http://www.d

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Shawn Erickson
On Wed, May 5, 2010 at 4:28 PM, Dave Keck wrote: >> Which makes me wonder why Apple doesn't make an API for doing it "the right >> way" easily? :-) > > I'd be disappointed if this didn't happen in 10.7. I'm hoping for a > kind of AEWP that handles all of the launchd shenanigans for you, and > onl

Re: Custom NSPathControl

2010-05-05 Thread Graham Cox
Thanks guys, I've made some progress - I can get it to display my "path", I just need to work on setting the icons which looks straightforward enough at this point. --Graham On 06/05/2010, at 4:50 AM, Corbin Dunn wrote: > > On May 5, 2010, at 10:20 AM, Quincey Morris wrote: > >> On May 5, 2

[SOLVED] Re: Linking a specific controller instance to user defaults

2010-05-05 Thread Graham Cox
Hi Quincey. That occurred to me too but seems a bit hackish. I solved it by asking the delegate for the settings name root. The delegate is a distinct class in this case, so it can return a unique string, and the delegate can be set in IB and so is available at -awakeFromNib time. Works well in

table view text cells: align vertically

2010-05-05 Thread Rainer Standke
Hello, I am looking for a way to center align text in a table view vertically. I understand that this may need some custom drawing mechanism. Is there any sample code out there? Or is there another way? Thanks, Rainer___ Cocoa-dev mailing list (Coco

Re: table view text cells: align vertically

2010-05-05 Thread Graham Cox
Search for RSVerticallyCenteredTextFieldCell - does what it says on the tin. --Graham On 06/05/2010, at 1:17 PM, Rainer Standke wrote: > Hello, > > I am looking for a way to center align text in a table view vertically. I > understand that this may need some custom drawing mechanism. > > Is

Re: Are there any tools or techniques for detecting / debugging retain-cycles?

2010-05-05 Thread Andy Lee
--Andy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: iPhone resource cache - memory question

2010-05-05 Thread Shripada Hebbar
Hi, I don't see any point in doing this on our own as the iPhone OS anyway gives you memory warning when we are consuming too much of it, and this is the right occasion to cleanup anything that is not needed ( in applicationDidReceiveMemoryWarning: message). Perhaps you are trying to implement so

Re: CoreData Object with transient attributes faulting after sync

2010-05-05 Thread Jerry Krinock
On 2010 May 05, at 02:54, Tom Fewster wrote: > the managed objects which contain transient values fault (didTurnIntoFault: > is called) and are recreated (awakeFromFetch is called), even though nothing > has changed, except for the contents of the transient attributes. This only > seems to hap

Synthesized ivar for std::tr1::shared_ptr?

2010-05-05 Thread Barry Wark
I'm no C++ guru, so I'm hoping someone can help me by explaining why the following gives a compiler error: //MyObjC.h @interface MyObjC : NSObject {} @end //MyObjC.mm #import "MyObjC.h" #include "MyClass.h" //provides MyClass, a C++ class #include using std::tr1::shared_ptr; @interface MyObjC