Change background color of UITabBarItem and UITabBar

2010-01-26 Thread Angelica Grace Tanchico
Hello, Is it possible to change color of UITabBar instead of the default color black? And also is it possible to change background color of UITabBarItem's background color instead of default color blue? If yes, how? Thanks in advance! -Angie _

How to access iTunes using cocoa

2010-01-26 Thread Ramesh P
Hi, Is it possible to access iTunes from cocoa application? Is there any open source framework for accessing iTunes? Thanks in advance, Ramesh.P ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: How to access iTunes using cocoa

2010-01-26 Thread Laurent Cerveau
You can use the scripting bridge framework which will send AppleEvent in a nice encapsulated way for you to iTunes laurent On Jan 26, 2010, at 10:48 AM, Ramesh P wrote: > Hi, > Is it possible to access iTunes from cocoa application? Is there any open > source framework for accessing iTunes? >

Centering a window on the *current* screen, not the *main* screen

2010-01-26 Thread Oleg Krupnov
Hi, It seems that [NSWindow center] centers the window on the *main* screen. Now how do I center a window on the screen it currently shows on, on a multi-monitor Mac? I could write my own code to position the window, but I don't know how to reproduce the recommended position of the centered wind

Re: How to hide dock item and application menu?

2010-01-26 Thread Andreas Mayer
Am 25.01.2010 um 23:24 Uhr schrieb Jens Alfke: This is not useful to me as my req is to provide the option to user to hide/ unhide dock and menu item. You can't change that while your app is running. You have to modify your own Info.plist and then relaunch. Well, you can transform a bac

Re: Centering a window on the *current* screen, not the *main* screen

2010-01-26 Thread Graham Cox
On 26/01/2010, at 9:10 PM, Oleg Krupnov wrote: > Now how do I center a window on the screen it currently shows on, on a > multi-monitor Mac? You need to consider what this really means. For example, what if a window is placed so appears on more than one monitor at the same time? Actually, NSWi

BIG Thread problem (theorical).. need some advice.

2010-01-26 Thread Gustavo Pizano
Hello all. I have this situation: I have a WebView which mainFrame Im loading form a NSString, then Im implementing the delegate : -(void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame; to check when the frame finish loading I can generate a pList to return to the caller. BU

Re: Centering a window on the *current* screen, not the *main* screen

2010-01-26 Thread Oleg Krupnov
Thanks Graham, > > You need to consider what this really means. For example, what if a window is > placed so appears on more than one monitor at the same time? > > Actually, NSWindow already works this out - its -screen method returns the > screen it mostly is placed on (i.e. contains the larges

Re: BIG Thread problem (theorical).. need some advice.

2010-01-26 Thread Gustavo Pizano
I did a solution like this -(NSDictionary *)pListWithWebElements{ if(_exporter == nil){ _exporter = [[XWSC2WExporter alloc] init]; } NSString * htmlString = [_exporter generateExportedHTMLFromLayouts:_layoutsArray]; if(_webController == ni

Re: BIG Thread problem (theorical).. need some advice.

2010-01-26 Thread Louis Gerbarg
On Tue, Jan 26, 2010 at 7:52 AM, Gustavo Pizano wrote: > > I duno if its the best solution but it works.. Im open to hear other > approaches... > > This isn't a threading issue, everything is happening on a single thread. The issue is that you have a synchronous API that depends on an asynchronou

Re: Centering a window on the *current* screen, not the *main* screen

2010-01-26 Thread Andreas Mayer
Am 26.01.2010 um 11:34 Uhr schrieb Graham Cox: Traditionally, this has been at a position leaving one third of the space above and two thirds below, though I'm not sure if that's still currently the exact placing. Yup, that's what the Human Interface Guidelines say: http://developer.app

Re: BIG Thread problem (theorical).. need some advice.

2010-01-26 Thread Gustavo Pizano
Aha, so if I understood good, you use Notifications instead, so when the LoadDelegate finish it post the notifications, and then my controller which I should have added to listen to a given notification and perform the given selector, can get the dictionary having for sure it has some data whi

Re: Centering a window on the *current* screen, not the *main* screen

2010-01-26 Thread Gregory Weston
Oleg Krupnov wrote: > Anyway, it's an annoyance that the [NSWindow center] uses [NSScreen > mainScreen] instead of [NSWindow screen]. I'd consider it a bug of > AppKit, indeed. No, just a philosophical difference regarding the meaning and, more importantly, intent of "centering" a window. And it

Re: Change background color of UITabBarItem and UITabBar

2010-01-26 Thread Greg Reichow
> > Is it possible to change color of UITabBar instead of the default color black? > And also is it possible to change background color of UITabBarItem's > background > color instead of default color blue? If yes, how? There is no API for changing the UITabBar. Yet, you can subclass the TabBar

Re: Centering a window on the *current* screen, not the *main* screen

2010-01-26 Thread Glenn L. Austin
On Jan 26, 2010, at 2:34 AM, Graham Cox wrote: >> I could write my own code to position the window, but I don't know how >> to reproduce the recommended position of the centered window, which is >> slightly above the center. > > > Traditionally, this has been at a position leaving one third of t

Debugging auto_zone_resurrection_error in Core Data using GCD

2010-01-26 Thread Benjamin Rister
I’m getting an auto_zone_resurrection_error from inside Core Data. Because this is following switching from locking a MOC on different threads (which was working fine) to dispatching blocks to a GCD queue, my suspicion naturally tends towards a multithreading violation. However, I’ve been over i

NSString category name collision?

2010-01-26 Thread jonat...@mugginsoft.com
I have defined a category on NSString which includes the following signature. - (NSString *)stringByReplacingCharactersInSet:(NSCharacterSet *) set withString:(NSString *) string On occasion I encounter the exception listed below where an OSAKit private method calls the same method (and trigge

Re: How to access iTunes using cocoa

2010-01-26 Thread Matt Neuburg
On Tue, 26 Jan 2010 15:18:38 +0530, Ramesh P said: >Hi, >Is it possible to access iTunes from cocoa application? Is there any open >source framework for accessing iTunes? I use objc-appscript for this. It has some advantages over Apple's Scripting Bridge (for one thing, it's backwards compatible

Re: NSString category name collision?

2010-01-26 Thread Jens Alfke
On Jan 26, 2010, at 8:08 AM, jonat...@mugginsoft.com wrote: Is this just one of the things we have to put up with as the price for dynamism or can this problem be pre-empted? I added a name space prefix to my method definition and the exception departed. Yes. To avoid these kinds of collis

Re: How to access iTunes using cocoa

2010-01-26 Thread Paul Sanders
I use Cocoa's NSAppleScript class. This seems to work fine on Tiger, Leopard and Snow Leopard. Should I be scared of the 'false timeout' bug? Mostly I just want to add tracks to the iTunes Music Library, although an efficient way to find a track by artist and title would be nice - scanning

Re: NSString category name collision?

2010-01-26 Thread jonat...@mugginsoft.com
On 26 Jan 2010, at 17:28, Jens Alfke wrote: > > On Jan 26, 2010, at 8:08 AM, jonat...@mugginsoft.com wrote: > >> Is this just one of the things we have to put up with as the price for >> dynamism or can this problem be pre-empted? >> I added a name space prefix to my method definition and the e

Re: simple file browser

2010-01-26 Thread Corbin Dunn
Jens/Andrew --- the SnowLeopard documentation is incorrect; it was added in 10.6, but "retro-published" to 10.4. So, it is available in 10.4 and higher. --corbin On Jan 25, 2010, at 5:57 PM, Andrew Merenbach wrote: > On Jan 25, 2010, at 4:12 PM, Jens Alfke wrote: > >> >> On Jan 25, 2010, at

Re: 10.6 Clips Tooltip if you return NSTextFieldCell in -dataCellForRow:

2010-01-26 Thread Corbin Dunn
Jerry, http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSCell_Class/Reference/NSCell.html Look up "expansion tool tips". Managing Expansion Frames • – expansionFrameWithFrame:inView: • – drawWithExpansionFrame:inView: For what it is wo

Re: NSString category name collision?

2010-01-26 Thread Sherm Pendley
On Tue, Jan 26, 2010 at 12:28 PM, Jens Alfke wrote: > > Yes. To avoid these kinds of collisions, if you add a category method to an > external class you should add some sort of hopefully-unique prefix to its > name. CocoaDev has a list of prefixes many people are using. Since it's a wiki, you can

Re: simple file browser

2010-01-26 Thread Jens Alfke
On Jan 26, 2010, at 10:03 AM, Corbin Dunn wrote: Jens/Andrew --- the SnowLeopard documentation is incorrect; it was added in 10.6, but "retro-published" to 10.4. So, it is available in 10.4 and higher. It's definitely not in the headers of the 10.5 SDK. Are you saying that the method was

Re: simple file browser

2010-01-26 Thread Corbin Dunn
On Jan 26, 2010, at 10:10 AM, Jens Alfke wrote: > > On Jan 26, 2010, at 10:03 AM, Corbin Dunn wrote: > >> Jens/Andrew --- the SnowLeopard documentation is incorrect; it was added in >> 10.6, but "retro-published" to 10.4. So, it is available in 10.4 and higher. > > It's definitely not in the

Re: How to access iTunes using cocoa

2010-01-26 Thread Matt Neuburg
On or about 1/26/10 9:41 AM, thus spake "Paul Sanders" : > Should I be scared of the 'false timeout' bug? You should if you're doing the kind of thing that triggers it. Looping in NSAppleScript over many tracks, you're almost certain to hit it. But the same thing is likely to happen even with the

Re: How to access iTunes using cocoa

2010-01-26 Thread Jens Alfke
On Jan 26, 2010, at 9:41 AM, Paul Sanders wrote: I use Cocoa's NSAppleScript class. This seems to work fine on Tiger, Leopard and Snow Leopard. Yup, it just has the limitation that you have to run the script synchronously, which sucks since many iTunes commands can take a long time. The

Need help figuring out poor Core Data performance

2010-01-26 Thread Eyal Redler
Hi, I'm working on a NSPersistentDocument based application. My data model is quite simple, the main entity contains a few strings, ints and dates and there is an array (one to many relationship) of another simple entity. The document window contains an NSTableView that displays all the mai

Re: How to access iTunes using cocoa

2010-01-26 Thread Otavio
On Tue, Jan 26, 2010 at 7:50 AM, Laurent Cerveau wrote: > You can use the scripting bridge framework which will send AppleEvent in a > nice encapsulated way for you to iTunes +1 Check this doc

Re: How to access iTunes using cocoa

2010-01-26 Thread Jens Alfke
On Jan 26, 2010, at 10:17 AM, Matt Neuburg wrote: NSAppleScript is your slowest choice because it slows way down as you loop and access memory (such as lists). Scripting Bridge and objc-appscript do all the heavy lifting in Objective-C and just throw Apple events at the target, so they are

Re: How to access iTunes using cocoa

2010-01-26 Thread has
Jens Alfke wrote: > On Jan 26, 2010, at 9:41 AM, Paul Sanders wrote: > >> I use Cocoa's NSAppleScript class. This seems to work fine on Tiger, Leopard >> and Snow Leopard. > > Yup, it just has the limitation that you have to run the script > synchronously, which sucks since many iTunes command

Re: How to access iTunes using cocoa

2010-01-26 Thread Paul Sanders
OK, thanks guys. My script is pretty simple-minded: it just retrieves each track in turn and compares the artist and title with what I am looking for. We're way off-topic now, but is there a better way? I'm trying to avoid adding the same track to the library twice. Thanks. Paul Sanders. Sorry

Re: [iPhone] Implementing VOIP for iPhone App

2010-01-26 Thread Shawn Rutledge
On Mon, Jan 25, 2010 at 1:50 PM, Michael Ash wrote: > I think that the term "VoIP" is a red herring here. Yes, technically > you're taking voice audio and sending it over IP, but VoIP normally > refers to real-time interactive usage like internet telephony. You're > just sending audio data to a se

Re: How to access iTunes using cocoa

2010-01-26 Thread Jens Alfke
On Jan 26, 2010, at 11:13 AM, has wrote: The Apple Event Object Model was optimized for System 7, where IPC was extremely expensive I know; I was on the AppleEvents engineering team at the time :) IPC is still extremely expensive, by the way, although not quite as much so. The actual OS-l

Re: How to access iTunes using cocoa

2010-01-26 Thread Jens Alfke
On Jan 26, 2010, at 11:18 AM, Paul Sanders wrote: OK, thanks guys. My script is pretty simple-minded: it just retrieves each track in turn and compares the artist and title with what I am looking for. We're way off-topic now, but is there a better way? I'm trying to avoid adding the same tra

Re: NSTabView

2010-01-26 Thread David Blanton
Ok, so there is no flag to set. So how would one deal with the situation I described? I want to see all the tab items ... are there multiple rows? Any help or suggestions, please. -db On Jan 25, 2010, at 11:46 PM, Scott Anguish wrote: On Jan 25, 2010, at 10:34 PM, David Blanton wrote: I

Re: How to access iTunes using cocoa

2010-01-26 Thread Paul Sanders
Cool! Thank you, that sounds just the ticket. I'll try it. I have to admit I haven't put a lot of effort into this. Paul Sanders. - Original Message - From: "Jens Alfke" To: "Paul Sanders" Cc: "Matt Neuburg" ; "Ramesh P" ; Sent: Tuesday, January 26, 2010 7:37 PM Subject: Re: How

Re: NSTabView

2010-01-26 Thread Kyle Sluder
On Tue, Jan 26, 2010 at 11:42 AM, David Blanton wrote: > I want to see all the tab items ... are there multiple rows? No. The HIG answers your questions: http://developer.apple.com/Mac/library/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGControls/XHIGControls.html#//apple_ref/do

Re: What is the equivalent of SetSystemUIMode() in Leopard and above?

2010-01-26 Thread Sean McBride
On 1/25/10 5:17 PM, Arun said: >Are there any cocoa equivalent API's for SetSystemUIMode() available in >Leopard 10.5 and above? >I want to hide dock and menu item at run time in my application. SetSystemUIMode works well for me in 10.5 and above. Is it causing problems for you? --

Re: How to access iTunes using cocoa

2010-01-26 Thread has
Jens Alfke wrote: > On Jan 26, 2010, at 11:13 AM, has wrote: > >> The Apple Event Object Model was optimized for System 7, where IPC >> was extremely expensive > > I know; I was on the AppleEvents engineering team at the time :) > > IPC is still extremely expensive, by the way, although not q

Re: How to access iTunes using cocoa

2010-01-26 Thread Jens Alfke
On Jan 26, 2010, at 12:45 PM, has wrote: I think a big hit comes from the time it takes to evaluate Apple event object specifiers. The cost-benefit tradeoff of having a complex, query-driven IPC system is much poorer on OS X, both in terms of performance and ease of implementation (one of

Re: Garbage Collection Docs Puzzle

2010-01-26 Thread Sean McBride
On 1/25/10 4:49 PM, Robert Clair said: >The garbage collection docs section on the interior pointer issue shows >this example: > >NSData *myData = [someObject getMyData]; >[myData retain]; >const uint8_t *bytes = [myData bytes]; >NSUInteger offset = 0, length = [myData length]; > >while (offset <

Re: Problems Fading Out Music

2010-01-26 Thread Chunk 1978
i just realized that this formula doesn't work with negative numbers. for example: shifting a pitch down one octave over a duration from 0.0 to -0.5, or panning a source with a duration from center at 0.0 to the left -1.0. any advice? On Thu, Jan 7, 2010 at 7:48 PM, Chunk 1978 wrote: > graham,

tab view look

2010-01-26 Thread Wesley Smith
I've been looking around for examples on how to get tab view too look like they do on Terminal, Safari, etc. Is there any example code around? I've not found any or really any references as to how to provide a custom look to tabs. thanks, wes ___ Coco

Re: Problems Fading Out Music

2010-01-26 Thread Graham Cox
On 27/01/2010, at 9:18 AM, Chunk 1978 wrote: > i just realized that this formula doesn't work with negative numbers. > for example: shifting a pitch down one octave over a duration from > 0.0 to -0.5, or panning a source with a duration from center at 0.0 to > the left -1.0. > > any advice? Y

Re: tab view look

2010-01-26 Thread Dave DeLong
http://www.positivespinmedia.com/dev/PSMTabBarControl.html Cheers, Dave On Jan 26, 2010, at 3:23 PM, Wesley Smith wrote: > I've been looking around for examples on how to get tab view too look > like they do on Terminal, Safari, etc. Is there any example code > around? I've not found any or r

Re: Problems Fading Out Music

2010-01-26 Thread Graham Cox
On 27/01/2010, at 9:24 AM, Graham Cox wrote: > > On 27/01/2010, at 9:18 AM, Chunk 1978 wrote: > >> i just realized that this formula doesn't work with negative numbers. >> for example: shifting a pitch down one octave over a duration from >> 0.0 to -0.5, or panning a source with a duration fro

Re: tab view look

2010-01-26 Thread Wesley Smith
thanks~ this looks like exactly what I was looking for. wes On Tue, Jan 26, 2010 at 2:24 PM, Dave DeLong wrote: > http://www.positivespinmedia.com/dev/PSMTabBarControl.html > > Cheers, > > Dave > > On Jan 26, 2010, at 3:23 PM, Wesley Smith wrote: > >> I've been looking around for examples on how

Re: simple cocoa browser, 'Invalid parameter not satisfying: aString != nil'

2010-01-26 Thread Ariel Feinerman
it`s interesting, but do you think what it will be better solution to use NSOpenPanel to change file`s attributes instead of NSBrowser? I try to compile http://developer.apple.com/mac/library/samplecode/SimpleCocoaBrowser/index.html one is not 10.5 compatible (it is important) if set up USE_ITEM_B

Re: Debugging auto_zone_resurrection_error in Core Data using GCD

2010-01-26 Thread Benjamin Rister
Because this isn’t already thorny enough, let me note that adding a [startDate self] below the dispatch_sync in the first example doesn’t fix the problem. This shows that it’s surviving long enough to at least reach the dispatch_sync() call, and in fact malloc_history shows this: > ALLOC 0x2000

Re: Problems Fading Out Music

2010-01-26 Thread Chunk 1978
sorry, you're correct. i had an error in the code so it was wrongly implemented. it does indeed work with negative values. thanks again. On Tue, Jan 26, 2010 at 5:35 PM, Graham Cox wrote: > > On 27/01/2010, at 9:24 AM, Graham Cox wrote: > >> >> On 27/01/2010, at 9:18 AM, Chunk 1978 wrote: >> >

Re: simple cocoa browser, 'Invalid parameter not satisfying: aString != nil'

2010-01-26 Thread Jens Alfke
On Jan 26, 2010, at 2:43 PM, Ariel Feinerman wrote: it`s interesting, but do you think what it will be better solution to use NSOpenPanel to change file`s attributes instead of NSBrowser? NSOpenPanel. —Jens___ Cocoa-dev mailing list (Cocoa-dev@li

Re: NSString category name collision?

2010-01-26 Thread Sean McBride
On 1/26/10 4:08 PM, jonat...@mugginsoft.com said: >The docs say: > >A category cannot reliably override methods declared in another category >of the same class. >This issue is of particular significance since many of the Cocoa classes >are implemented using categories. >A framework-defined method

Re: NSString category name collision?

2010-01-26 Thread Greg Parker
On Jan 26, 2010, at 3:19 PM, Sean McBride wrote: > On 1/26/10 4:08 PM, jonat...@mugginsoft.com said: >> I added a name space prefix to my method definition and the exception >> departed. > > You can add the following env var to debug these problems btw: > OBJC_PRINT_REPLACED_METHODS. Use OBJC_PRI

Re: Need help figuring out poor Core Data performance

2010-01-26 Thread Sean McBride
On 1/26/10 12:15 PM, Eyal Redler said: >I'm working on a NSPersistentDocument based application. My data model >is quite simple, the main entity contains a few strings, ints and >dates and there is an array (one to many relationship) of another >simple entity. >The document window contains an NSTa

Re: Garbage Collection Docs Puzzle

2010-01-26 Thread John Engelhart
On Tue, Jan 26, 2010 at 4:51 PM, Sean McBride wrote: > On 1/25/10 4:49 PM, Robert Clair said: > > >The garbage collection docs section on the interior pointer issue shows > >this example: > > > >NSData *myData = [someObject getMyData]; > >[myData retain]; > >const uint8_t *bytes = [myData bytes];

AppleEvent memory leak

2010-01-26 Thread Rainer Standke
Hello, I have an app that sends and receives AppleEvents to and from Final Cut Pro. The AppleEvent part of my code is closely modeled after the sample code provided by Apple. Really: I barely modified the code. When I look at Leaks I am told that for each transaction (sending or receiving

Re: How to access iTunes using cocoa

2010-01-26 Thread Michael Ash
On Tue, Jan 26, 2010 at 3:57 PM, Jens Alfke wrote: > > On Jan 26, 2010, at 12:45 PM, has wrote: > >> I think a big hit comes from the time it takes to evaluate Apple event >> object specifiers. The cost-benefit tradeoff of having a complex, >> query-driven IPC system is much poorer on OS X, both i

Global in NSApplication

2010-01-26 Thread BareFeet
Hi all, I've created a "Debug" class in my app, which contains an instance variable and several methods. I want to add this to my application but can't see how. I can add it to MyDocument class like this: - (id)init { self = [super init]; if (self) { // other stuff debug

Re: Global in NSApplication

2010-01-26 Thread Murat Konar
Read up on categories. Then make the instance of your Debug class a static variable in your category implementation file, and use a method you added to NSApplication via your category to return it. _murat On Jan 26, 2010, at 6:05 PM, Ba

Re: Launch process as root from cocoa app

2010-01-26 Thread Charles Srstka
On Jan 25, 2010, at 9:18 PM, Nick Zitzmann wrote: > > On Jan 25, 2010, at 12:57 AM, Nyxem wrote: > >> 1 - Using the authorizationRef object of my SFAuthorizationView and call >> AuthorizationExecuteWithPrivileges() ("/bin/launchctl load >> /Library/LaunchDaemons/com.mydaemon.plist") >> --

Re: What is the equivalent of SetSystemUIMode() in Leopard and above?

2010-01-26 Thread Arun
I wanted to use SetSystemUIMode() to hide the dock item and menu of my application. Do you know how can we achieve using the same? On Wed, Jan 27, 2010 at 2:04 AM, Sean McBride wrote: > On 1/25/10 5:17 PM, Arun said: > > >Are there any cocoa equivalent API's for SetSystemUIMode() available in > >

Re: What is the equivalent of SetSystemUIMode() in Leopard and above?

2010-01-26 Thread Kiel Gillard
On 27/01/2010, at 3:03 PM, Arun wrote: > I wanted to use SetSystemUIMode() to hide the dock item and menu of my > application. Do you know how can we achieve using the same? Please see the LSBackgroundOnly Info.plist key:

Re: What is the equivalent of SetSystemUIMode() in Leopard and above?

2010-01-26 Thread Jesper Storm Bache
I don't have the entire thread on this machine so I apologize if I am repeating someone else. When you are ready do say "10.6 and above", then you can consider using [NSApplication setPresentationOptions] In the meantime SetSystemUIMode works well in both 32 and 64 bit binaries. Jesper S

Re: Global in NSApplication

2010-01-26 Thread Jens Alfke
Even easier, use the Singleton design pattern and implement a +sharedInstance class method in your class. This is how existing singletons like NSFileManager work. --Jens {via iPhone} On Jan 26, 2010, at 6:17 PM, Murat Konar wrote: Read up on categories. Then make the instance of your De

Context menu on NSOutlineView, which row is active/selected?

2010-01-26 Thread David Melgar
I have a menu set as the Menu outlet of an NSOutlineView to use as a context menu (right click) on a row. When the menu is chosen on a row, the chosen action on my target (my OutlineView controller) is invoked as expected. In my view controller, I had been assuming that the row the right click

Re: Context menu on NSOutlineView, which row is active/selected?

2010-01-26 Thread Kyle Sluder
On Tue, Jan 26, 2010 at 9:09 PM, David Melgar wrote: > How should I determine the row that the right click occurred on? Take a look at -[NSTableView clickedRow]. Remember to look at the superclass. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: What is the equivalent of SetSystemUIMode() in Leopard and above?

2010-01-26 Thread Charles Srstka
On Jan 26, 2010, at 10:39 PM, Jesper Storm Bache wrote: > I don't have the entire thread on this machine so I apologize if I am > repeating someone else. > > When you are ready do say "10.6 and above", then you can consider using > [NSApplication setPresentationOptions] > In the meantime S

Re: Global in NSApplication

2010-01-26 Thread BareFeet
Yes, I'm familiar with categories, but didn't mention it because it's so similar to subclassing. I just wanted to check if there's a simpler way. I guess not. Thanks, Tom BareFeet Sent from my iPhone On 27/01/2010, at 1:17 PM, Murat Konar wrote: Read up on categories. Then make the instance

Re: Global in NSApplication

2010-01-26 Thread Graham Cox
On 27/01/2010, at 4:43 PM, BareFeet wrote: > I just wanted to check if there's a simpler way. I guess not. The singleton pattern Jens suggested is simpler. I can't think of any simpler way: + (Debug*) sharedDebug { static Debug* s_debug = nil; if( s_debug == nil )

Re: Change background color of UITabBarItem and UITabBar

2010-01-26 Thread Angelica Grace Tanchico
Hi Greg, Thanks for this information. It did change the color of the TabBar. But the other question is still unanswered. Is it possible to change the TabBarItem's image colors? Instead of default gray (when not selected) and blue (when selected)? How? Thanks! Really appreciate it! Regards, A

Re: Ellipsis + Proper Expansion Frame + HScroll-Edit in 10.6 NSTableView (was "Clipped Tooltip")

2010-01-26 Thread Jerry Krinock
On 2010 Jan 26, at 10:07, Corbin Dunn wrote: > Look up "expansion tool tips". Thanks! > For what it is worth, using a normal NSTexTFieldCell should always work -- > there is possibly something wrong with the way you have it setup (like > allowing wrapping, or something). Yes and no. The va

Re: How to access iTunes using cocoa

2010-01-26 Thread has
Michael Ash wrote: >>> I think a big hit comes from the time it takes to evaluate Apple event >>> object specifiers. [...] >> >> Complex AE object queries have the same benefit that SQL queries do: they >> let the data source perform an efficient search. [...] > > Would this actually matter in r