Link to Settings.App

2011-01-24 Thread Remco Poelstra
Hi, How can I link to the settings app on iOS? If the user did not configure the WiFi, I want to switch the user to the Wifi settings pane. I know it's possible, since the app from the local railway corporation does the same thing (except for a different page inside the app). I just can't find

Creating a mouse event & event number

2011-01-24 Thread Eric Gorr
It's straightforward to create a mouse event using NSEvent's mouseEventWithType method. The only question I have is what should I be passing in for the eventNumber parameter? 0? 1? some other number? Does it matter?___ Cocoa-dev mailing list (Cocoa-de

MemoryWarning and loadView

2011-01-24 Thread Bleicher Eiko
Hi, I want to get a deeper understanding of the memory warning handling on iOS in UIViewControllers. It seems that the default implementation of didReceiveMemoryWarning will set the view to nil, and viewDidUnload gets called. *But* this is only done when the controller implements loadView. Eve

RE: how to change NSButton color

2011-01-24 Thread Shawn Bakhtiar
Deriving a class from NSButton is not a daunting task by any imagination, you only need understand that NSButton is nothing more than a wrapper class for NSButtonCell. As for the HIG it is a recommendation, and it indeed serves a purpose (IE for programmers who thing all their users are p

NSOutlineView syncing demo project

2011-01-24 Thread Markus Spoettl
Hello, I could have sworn there was an example project somewhere in the documentation that demos how to sync two outline views (or table views) but I can't find it. I have an application that displays different versions of the same tree structure at the same time. I'd like to sync multiple

Re: MemoryWarning and loadView

2011-01-24 Thread David Duncan
On Jan 24, 2011, at 8:52 AM, Bleicher Eiko wrote: > I want to get a deeper understanding of the memory warning handling on iOS in > UIViewControllers. > > It seems that the default implementation of didReceiveMemoryWarning will set > the view to nil, and viewDidUnload gets called. *But* this is

how to retrive a part of image from a png/bitmap

2011-01-24 Thread Rajendran P
hi , i have a single bitmap/jpeg (no restriction on image type) of size 360*30 consisting of 12 pictures each of size 30*30 , i need to programatically retrieve each of these images and display them in ui . any suggestion on how to approach this would be of great help Thanks in

Weather API for commercial use in iOS app

2011-01-24 Thread Roger Dalal
Good Day, List: Does anyone have any information regarding the commercial use of a Weather API for iOS apps? I have tried contacting a few of the more popular services (such as weather wunderground) via e-mail, but never receive a response. My preference would be Yahoo, but I can not locate inf

Re: starting with Cocoa!

2011-01-24 Thread Rita
On Jan 23, 2011, at 20:26, Rita wrote: > I also recommend "Developing Apps for IOS" series of video recordings from > Stanford University (by Paul Hegarty) available through iTunes U at iTunes > (in SD and HD). I found it very useful along with Apple's online library of > documents at develo

Re: how to retrive a part of image from a png/bitmap

2011-01-24 Thread Quincey Morris
On Jan 24, 2011, at 09:46, Rajendran P wrote: > i have a single bitmap/jpeg (no restriction on image type) of size 360*30 > consisting of 12 pictures each of size 30*30 , i need to programatically > retrieve each of these images and display them in ui . any suggestion on how > to > approac

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-24 Thread Nala Gnirut
I'm getting the same results with NSString *test = [NSString localizedStringWithFormat:@"%'6.2f", 90.55]; NSLog(@"Test: %@", test); Output is: Test: '6.2f On Fri, Jan 21, 2011 at 5:58 PM, David Duncan wrote: > On Jan 21, 2011, at 3:21 AM, Nala Gnirut wrote: > > > Hi all, > > accord

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-24 Thread Graham Cox
On 25/01/2011, at 9:51 AM, Nala Gnirut wrote: > I'm getting the same results with > >NSString *test = [NSString localizedStringWithFormat:@"%'6.2f", > 90.55]; >NSLog(@"Test: %@", test); > > Output is: > > Test: '6.2f That's because you have placed the format specifier inside quot

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-24 Thread Roland King
On 25-Jan-2011, at 6:59 AM, Graham Cox wrote: > > On 25/01/2011, at 9:51 AM, Nala Gnirut wrote: > >> I'm getting the same results with >> >> NSString *test = [NSString localizedStringWithFormat:@"%'6.2f", >> 90.55]; >> NSLog(@"Test: %@", test); >> >> Output is: >> >> Test: '6.2f > >

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-24 Thread Graham Cox
On 25/01/2011, at 10:09 AM, Roland King wrote: >> That's because you have placed the format specifier inside quote marks. >> Remove them and try again. >> >> --Graham >> > > Don't think so - the apostrophy is exactly what he's trying to test, that's > supposed to be the extended printf forma

[iPhone] can't get views not to slide off by the height of the status bar

2011-01-24 Thread WT
Hello list, I have the following view hierarchy in an iPhone test app: window status bar view managed by a tab bar with 2 tabs view for tab 0: some view, managed by some view controller view for tab 1: one of a set of views, managed by a navigation controller tab bar In more detail

-collapseItem: doesn't collapse when -outlineView:shouldShowOutlineCellForItem: returns NO

2011-01-24 Thread Markus Spoettl
Hello, I have an NSOutlineView that has the delegate method - (BOOL)outlineView:(NSOutlineView *)outlineView shouldShowOutlineCellForItem:(id)item implemented to return NO for some items (even though they do have subitems). These items are expanded and collapsed programmatically using NSOut

Re: NSOutlineView syncing demo project

2011-01-24 Thread Markus Spoettl
On Jan 24, 2011, at 12:38 PM, Markus Spoettl wrote: > Am I dreaming this example project up? For the record: It appears so. However, there's a topic in the NSScrollView programming guide that talks in detail about synchronizing two scroll views: http://developer.apple.com/library/mac/#documenta

Re: lots of find/replace in text file

2011-01-24 Thread Matt Neuburg
On Jan 22, 2011, at 9:37 AM, cocoa-dev-requ...@lists.apple.com wrote: > Date: Sat, 22 Jan 2011 09:19:50 -0500 > From: Jeremy Matthews > Subject: lots of find/replace in text file > > So...the app I previously mentioned, ala Mad Libs...I now have lots more text > to replace within the file (new

Re: lots of find/replace in text file

2011-01-24 Thread Kyle Sluder
On Jan 24, 2011, at 6:02 PM, Matt Neuburg wrote: > > (2) A common trick is make the text file a format string (i.e., containing a > lot of %@) and just hand it to stringWithFormat along with all the > substitutions. Badda bing badda boom. This is how security vulnerabilities are born. You are

How to set tab order in a window that has view swapping

2011-01-24 Thread Abhijeet Singh
Hi,I have a single window with a toolbar and a custom view in my application. Toolbar has Back and Next button on it. This is my MainMenu.xib. I have 5 more xibs other than the MainMenu.xib in my application. Each xib contains one view with different controls in it. On Next and Back button click

Loading the Foundation at runtime

2011-01-24 Thread Mathieu Suen
Hi All, In other to write a binding for a language I need to load the Foundation framework at run time. So just to test I wrote a simple example: --objc-test.c-- #include #include #include void onLoad (Class this, char* inCat) { printf ("Loading %s in %s\n", class_get

WebKit WebArchive Create but no Load?

2011-01-24 Thread Bruce Cresanta
Hello, It is rather straightforward to create a webarchive in Cocoa: WebArchive* archive = [[[webArchive mainFrame] dataSource] webArchive] However... Once you have this archive, there seems to be no way to load it back into the webview. Am I missing something?? Any guidance is very much