Transparant button click

2010-08-27 Thread Erik Colson
Hi, What would be the best way to create a button with a partially transparent image on a nsview that would only respond to mouse clicks that are on the non-transparent part of the image ? Thanks ! -- Erik Colson___ Cocoa-dev mailing list (Cocoa-dev@

Changing tabview tab order with IB 3.2.3

2010-08-27 Thread Nirias
In the old IB, at least at version 3.1.2, it was possible to re-order tabs in a tab view by clicking a tab and then using the left and right arrow keys move that tab in the order. But with IB 3.2.3, the arrow keys just change which tab is selected (eg the left arrow key will deselect the current t

Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread Tito Ciuro
On 27/08/2010, at 14:05, David Duncan wrote: > > On Aug 27, 2010, at 10:47 AM, Tito Ciuro wrote: > >> - (NSUInteger)systemPageSize >> { >> static NSUInteger __sSystemPageSize = NSNotFound; >> >> #if TARGET_OS_MAC >> if (NSNotFound == __sSystemPageSize) { >> NSTask *task = [[NSTask all

Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread Tito Ciuro
Excellent! Thanks Kyle! -- Tito On 27/08/2010, at 14:02, Kyle Sluder wrote: > Read this: > http://sealiesoftware.com/blog/archive/2010/8/16/TargetConditionalsh.html > > --Kyle Sluder > (Sent from the road) > > On Aug 27, 2010, at 1:47 PM, Tito Ciuro wrote: > >> Hello, >> >> I have code th

Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread David Duncan
On Aug 27, 2010, at 10:47 AM, Tito Ciuro wrote: > - (NSUInteger)systemPageSize > { >static NSUInteger __sSystemPageSize = NSNotFound; > > #if TARGET_OS_MAC >if (NSNotFound == __sSystemPageSize) { >NSTask *task = [[NSTask alloc] init]; > >// > >[task release]; >

Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread Kyle Sluder
Read this: http://sealiesoftware.com/blog/archive/2010/8/16/TargetConditionalsh.html --Kyle Sluder (Sent from the road) On Aug 27, 2010, at 1:47 PM, Tito Ciuro wrote: > Hello, > > I have code that's part of a framework and I'd like to port it to iOS. I > tried isolating the code like so: >

TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread Tito Ciuro
Hello, I have code that's part of a framework and I'd like to port it to iOS. I tried isolating the code like so: // // RootViewController.m // iPhoneTest #import "RootViewController.h" @implementation RootViewController #pragma mark - #pragma mark View lifecycle - (void)viewWillAppear:(B

Troubles with custom view inside NSScrollView

2010-08-27 Thread Martin Hewitson
Dear list, I have a simple OS X app with custom view (controlsView) which contains lots of different controls. This controlsView has a fixed size, so I want to put it in the middle of a scrollview with a gap around it, so that its size is independent of the size of the application window. This

Re: Performance issue

2010-08-27 Thread Shawn Erickson
On Fri, Aug 27, 2010 at 1:34 AM, Uli Kusterer wrote: > On 26.08.2010, at 20:37, Ken Thomases wrote: >> Shark and most of the instruments in Instruments are statistical samplers, >> not exact function-call measurement.  Also, Vijay already mentioned >> familiarity with Instruments. > >  I am sorr

Re: Workaround for "Symbol not found: _SCDynamicStoreCreate" on 10.4?

2010-08-27 Thread Sidney San Martín
Thanks a lot, Greg! The reordering workaround makes me feel funny inside, but it does appear to work. has been filed. -Sidney On Tue, Aug 24, 2010 at 2:51 AM, Greg Parker wrote: > On Aug 23, 2010, at 12:46 PM, Greg Parker wrote: >> On Aug 23, 2010, at 12:20 PM, Sidney San Martín wrote: >>> I'm

Re: Odd question about UIViews in UIScrollView

2010-08-27 Thread Eric E. Dolecki
After further investigation and me turning background color on and alpha down, I seem to have overlapping album covers, thus the wonky index reporting. Sorry for the noise. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.n

Odd question about UIViews in UIScrollView

2010-08-27 Thread Eric E. Dolecki
I have a UIScrollView that I am placing custom UIViews into. Album covers with metadata. Right now just for testing, when I create the UIView to add to the scroll view, I am also setting an int variable in the UIView... AlbumCover *lad = [[AlbumCover alloc] initWithFrame:CGRectMake(190, 5, 200, 20

Re: How to change name and location of "core dump files"

2010-08-27 Thread Parimal Das
Thanks a lot Mark. I will try this and post the code :) -Parimal Das On Thu, Aug 26, 2010 at 10:27 PM, Mark Ritchie wrote: > Hey! > > On 26/Aug/2010, at 7:29 AM, Parimal Das wrote: > > How i can change this core name to a more readable one, say > core.myApp. > > Also can i change the defaul

Re: How to set focus on NSMenu (make it get key events)?

2010-08-27 Thread Kyle Sluder
On Aug 27, 2010, at 3:34 AM, Nava Carmon wrote: > Hi, > > I have a status menu with a NSSearchField and menu items. When search field > is active and user presses up & down arrows, I'd like to start menu tracking, > that is that the user will be able to move with arrow keys between menu > ite

Re: NSOpenPanel -setAllowedFileTypes

2010-08-27 Thread Uli Kusterer
On 27.08.2010, at 02:00, k...@highrolls.net wrote: > Check this out and comment please http://highrolls.net/open_filter.png PS - What's with all the small controls? I'd be quite hard pressed to use this on a 27in iMac. You have enough room, so I'd recommend switching those back to "normal". Ch

Re: NSOpenPanel -setAllowedFileTypes

2010-08-27 Thread Uli Kusterer
On 27.08.2010, at 02:00, k...@highrolls.net wrote: > Our market (machine embroidery) realizes 29 file types. A customer may have a > machine that recognizes 3 or 4 of these. Giving them the ability to filter > file types from an open panel is quite reasonable and has nothing to do with > their

Re: Performance issue

2010-08-27 Thread Uli Kusterer
On 26.08.2010, at 20:37, Ken Thomases wrote: > Shark and most of the instruments in Instruments are statistical samplers, > not exact function-call measurement. Also, Vijay already mentioned > familiarity with Instruments. I am sorry, my mistake. I must have read "instruments tool" as somethin

How to set focus on NSMenu (make it get key events)?

2010-08-27 Thread Nava Carmon
Hi, I have a status menu with a NSSearchField and menu items. When search field is active and user presses up & down arrows, I'd like to start menu tracking, that is that the user will be able to move with arrow keys between menu items. I can catch moveUp and moveDown selectors. How can I cause