NOAA data feeds

2010-07-20 Thread Charlie Dickman
I apologize if this question is off topic; if it is could someone assist me with where I might find an answer. I'm looking for URL information and, if possible, examples of how to get NOAA weather advisory information via wifi into a Cocoa application. Any help would be gratefully appreciated.

Re: Encrypting data in a Core Data SQL store for a Mac desktop app

2010-07-20 Thread Charlie Dickman
I'm entering this thread late I know and for what it's worth this may be inappropriate for what you're trying to do ... There's an encryption framework available for free from Aquatic Prime (http://aquaticmac.com/) that is intended to manage registration keys but there's no reason I can see why

NSTableView & Multiple Columns

2010-07-20 Thread Robb
I'm trying to setup a table view with multiple columns, but I can't figure out how to identify any particular column. what does [tablecolumn identifier] actually return so i can compare it? I assumed a string, but that didn't work. So my questions is, what do I do with the NSTableColumn thats

Help with canConcurrentlyReadDocumentsOfType:

2010-07-20 Thread Clarence Locke
I just can't seem to see what I am doing incorrectly. In my NSDocument-derived class I have implemented: + (BOOL) canConcurrentlyReadDocumentsOfType:(NSString*)typeName_i { NSLog(@"canConcurrentlyReadDocumentsOfType:"); return YES; } Whe

Resizing of NSTokenField

2010-07-20 Thread Vijayakumar_Thota
Dear List, Facing an issue in resizing of NSTokenField, while adding the tokens not by typing (Adding from the search list). The tokens from the beginning of second line(End of first line) are getting clipped. While adding the tokens manually (by typing) , the NSTokenField is getting resized p

Re: managing split view iPad

2010-07-20 Thread Andrea Mattiuz
thank you mmalc for the tip, but I don't have a navigation controller in the view xib file that I will charge, because I have an only navigation controller on the right side, declarated on the MainView xib file, an I work changing it. When I tap on the left side I modified the controller with thi

Re: HTTP Pipe lining communication in iPhone application

2010-07-20 Thread SanthoshKumarGundu
Hi Sridhar, In developer sample codes there is one demo application 'lazy image downloading'. Check that one.Hope this helps you. You can send asynchronous requests to multiple urls and display the images. Thanks, Santhosh Kumar Gundu On Jul 19, 2010, at 12:31 AM, cocoa-dev-requ...@l

Re: NSTableView & Multiple Columns

2010-07-20 Thread Quincey Morris
On Jul 18, 2010, at 16:32, Robb wrote: > I'm trying to setup a table view with multiple columns, but I can't figure > out how to identify any particular column. > what does [tablecolumn identifier] actually return so i can compare it? I > assumed a string, but that didn't work. So my questions

Re: Help with canConcurrentlyReadDocumentsOfType:

2010-07-20 Thread Quincey Morris
On Jul 19, 2010, at 11:04, Clarence Locke wrote: > I just can't seem to see what I am doing incorrectly. In my > NSDocument-derived class I have implemented: > > > + (BOOL) canConcurrentlyReadDocumentsOfType:(NSString*)typeName_i > { > NSLog(@"canConcurrentlyReadDocum

Re: NSTableView & Multiple Columns

2010-07-20 Thread Graham Cox
On 19/07/2010, at 9:32 AM, Robb wrote: > I'm trying to setup a table view with multiple columns, but I can't figure > out how to identify any particular column. > what does [tablecolumn identifier] actually return so i can compare it? I > assumed a string, but that didn't work. So my question

Re: Basic Q: Where is the best place to open a drawer?

2010-07-20 Thread Bill Cheeseman
On Jul 19, 2010, at 5:24 PM, Kyle Sluder wrote: > 1. You shouldn't use drawers anymore, as per the HIG. I believe you are mistaken. The current version of the HIG says, in the Drawers topic, "Use drawers only for controls that need to be accessed fairly frequently but that don't need to be vi

Re: managing split view iPad

2010-07-20 Thread Michael Babin
On Jul 20, 2010, at 3:08 AM, Andrea Mattiuz wrote: > thank you mmalc for the tip, > but I don't have a navigation controller in the view xib file that I will > charge, because I have an only navigation controller on the right side, > declarated on the MainView xib file, an I work changing it. >

The error from -[NSManagedObjectContext executeFetchRequest:error:]

2010-07-20 Thread Jerry Krinock
I'm fairly religious about returning NSError objects up through my call stack and handling them a high level. But I always find myself in a quandary with -[NSManagedObjectContext executeFetchRequest:error:]. First, this method is almost always used at a very low level in my code, so I have a v

Looking for NSXMLDocument example

2010-07-20 Thread McLaughlin, Michael P.
I have, in the past, used standard (Carbon) documents and windows to find and replace text. Right now, in Cocoa, I do the following: 1. Create an NSXMLDocument from a URL (and show it in a window). 2. Change/replace the string value of one or more nodes. I am looking for a simple code fragment s

Re: NOAA data feeds

2010-07-20 Thread Hunter Hillegas
Depending on what NOAA data you're looking for, some is here: http://www.ndbc.noaa.gov/data/realtime2 It's all fixed delimiter so it's not hard to parse. On Jul 18, 2010, at 11:52 AM, Charlie Dickman wrote: > I apologize if this question is off topic; if it is could someone assist me > with wh

Re: managing split view iPad

2010-07-20 Thread Andrea Mattiuz
thanks, with -[UINavigationController setViewControllers:animated:] I can "reset" the navigation controller on the right side, passing to this method an array with the only ViewController of the new view I have to represent. Why I can do it only at the first tap and after that nothing changes

Re: Resizing of NSTokenField

2010-07-20 Thread Kyle Sluder
On Jul 19, 2010, at 11:40 PM, Vijayakumar_Thota wrote: > Dear List, > > Facing an issue in resizing of NSTokenField, while adding the tokens not by > typing (Adding from the search list). The tokens from the beginning of second > line(End of first line) are getting clipped. > > While adding

Re: managing split view iPad

2010-07-20 Thread Michael Babin
On Jul 20, 2010, at 9:24 AM, Andrea Mattiuz wrote: > with -[UINavigationController setViewControllers:animated:] I can "reset" > the navigation controller on the right side, passing to this method an array > with the only ViewController of the new view I have to represent. > Why I can do it on

Re: Core Data caching very large property values in 10.6

2010-07-20 Thread Keary Suska
On Jul 19, 2010, at 5:47 PM, Quincey Morris wrote: > AFAICT, this is telling me that Core Data has itself cached the NSData object > in a "row cache". That's very bad news, because it seems to persist in there > indefinitely, until the managed object context is finally disposed of (which > I ca

Re: Initializing unichar variable with a human readable letter

2010-07-20 Thread James Bucanek
vincent habchi wrote (Saturday, July 17, 2010 1:58 PM +0200): I have a very simple problem: I'd like to affect to a unichar variable the value of the glyph é (or any non-ascii character). Others can correct me if I'm wrong, but the basic problem here is that GCC d

Re: managing split view iPad

2010-07-20 Thread Andrea Mattiuz
On Jul 20, 2010, at 4.53 PM, Michael Babin wrote: >I'm picturing a set-up like the one used by the Settings app on the iPad, having a split view with a table view on the left and a navigation view on the right. Selecting an item in the table view on the left sets a new "root view" in the navig

Re: Initializing unichar variable with a human readable letter

2010-07-20 Thread Sean McBride
On Tue, 20 Jul 2010 08:17:51 -0700, James Bucanek said: >Others can correct me if I'm wrong, but the basic problem here >is that GCC does not, and cannot, know the character encoding of >the source file. Thus, program source code must be restricted to >ASCII and any non-ASCII characters are unpred

Re: MainMenu.nib won't load - NSDocumentController shared instance - unsanity haxie?

2010-07-20 Thread AppleLists_Jim Witte
Just an idea that's probably wrong (I'm not a Cocoa programmer at all really..). Does the user have any Unsanity APEs installed? I can't see why an APE would be instantiating NSDocumentController (or even if it could), or why it would occur. Would it be possible to use gdb or somethin

Re: MainMenu.nib won't load - NSDocumentController shared instance - unsanity haxie?

2010-07-20 Thread Kyle Sluder
On Tue, Jul 20, 2010 at 8:41 AM, AppleLists_Jim Witte wrote: >        Just an idea that's probably wrong (I'm not a Cocoa programmer at all > really..).  Does the user have any Unsanity APEs installed?  I can't see why > an APE would be instantiating NSDocumentController (or even if it could), o

WebView pagination for printing

2010-07-20 Thread Gideon King
Hi, my original quest was to print a table view with pagination and headers, but when I initially tried it, I didn't see how I could include the column headings in it, and found on the lists the suggestion to use a WebView and put the data in there to print it. When I tried it, I see that it ju

Re: Initializing unichar variable with a human readable letter

2010-07-20 Thread Matt Neuburg
On Tue, 20 Jul 2010 08:17:51 -0700, James Bucanek said: >While you can often get away with sticking non-ASCII characters >into string literals, it is a non-standard solution that is >unsupported and fragile There's no guarantee that it will work >with future (or past) versions of the compiler or i

case-insensitive but case-ordered sort

2010-07-20 Thread Roland King
I want to sort some NSStrings in such a way that words group case insensitively, but within that group lowercase comes first, effectively I want the sort order of letters to be aAbBcCdDeEfF .. etc with everything outside the letter space sorting 'naturally' and coming after the letters (I actu

Re: case-insensitive but case-ordered sort

2010-07-20 Thread Wim Lewis
On Jul 20, 2010, at 10:39 AM, Roland King wrote: > I thought perhaps that comparing the two strings case insensitively, > returning that compare if they are not equal, but if they are equal, > comparing them case sensitively and returning the inverse of that (remember I > want a to beat A) woul

Re: case-insensitive but case-ordered sort

2010-07-20 Thread Charlie Dickman
You should be able to accomplish what you want using NSPredicate. You can also use the C functions topper and tolower to detect and distinguish case differences. On Jul 20, 2010, at 1:39 PM, Roland King wrote: > I want to sort some NSStrings in such a way that words group case > insensitively,

Can't get "pmset" to work

2010-07-20 Thread Luca C.
Hi everyone, I'm having a strange problem. I create the right authorization to get the privileges I want, then I just make a simple call to pmset. This is the snippet char *opts[] = { "schedule", "sleep", "\"07/20/10 14:45:00\"", NULL }; OSStatus result = AuthorizationExecuteWithPrivileges(

Re: case-insensitive but case-ordered sort

2010-07-20 Thread Kyle Sluder
On Tue, Jul 20, 2010 at 11:04 AM, Charlie Dickman <3tothe...@comcast.net> wrote: > You should be able to accomplish what you want using NSPredicate. NSPredicate will just wind up falling through to the same sorting methods Roland can call directly. > You can also use the C functions topper and to

Re: WebView pagination for printing

2010-07-20 Thread Matt Neuburg
On Wed, 21 Jul 2010 02:19:44 +1000, Gideon King said: >Briefly, my needs are as follows: >- print headers and footers on the page >- print the content at the top of the content area even if it's shorter than the page >- ensure pagination doesn't split table rows > >I am quite familiar with the kno

Re: Can't get "pmset" to work

2010-07-20 Thread Kyle Sluder
On Tue, Jul 20, 2010 at 1:34 AM, Luca C. wrote: > Hi everyone, > I'm having a strange problem. I create the right authorization to get the > privileges I want, then I just make a simple call to pmset. Don't use AEWP to run arbitrary programs. See the AEWP documentation for the correct approach: h

Re: Can't get "pmset" to work

2010-07-20 Thread Stephen J. Butler
On Tue, Jul 20, 2010 at 3:34 AM, Luca C. wrote: > OSStatus result = AuthorizationExecuteWithPrivileges( > >                                             auth, > >                                             "/usr/bin/pmset", > >                                             kAuthorizationFlagDefaults

Re: case-insensitive but case-ordered sort

2010-07-20 Thread Keary Suska
On Jul 20, 2010, at 11:39 AM, Roland King wrote: > I thought perhaps that comparing the two strings case insensitively, > returning that compare if they are not equal, but if they are equal, > comparing them case sensitively and returning the inverse of that (remember I > want a to beat A) woul

Re: Core Data caching very large property values in 10.6

2010-07-20 Thread Quincey Morris
On Jul 20, 2010, at 08:03, Keary Suska wrote: > On Jul 19, 2010, at 5:47 PM, Quincey Morris wrote: > >> AFAICT, this is telling me that Core Data has itself cached the NSData >> object in a "row cache". That's very bad news, because it seems to persist >> in there indefinitely, until the manage

Re: WebView pagination for printing

2010-07-20 Thread Gideon King
OK, thanks Matt - I'll roll my own then. It's a real shame that printing support isn't there nicely for table views... Regards Gideon On 21/07/2010, at 5:46 AM, Matt Neuburg wrote: > > Then I'd suggest that you just write a view of your own that draws the way > you want, and print that view.

Re: WebView pagination for printing

2010-07-20 Thread Matt Neuburg
On or about 7/20/10 4:19 PM, thus spake "Gideon King" : > It's a real shame that printing > support isn't there nicely for table views... I don't really understand this kind of complaint. If you organize a hierarchy of intelligent self-printing views, printing is a snap, as I've said before: htt

Re: Can't get "pmset" to work

2010-07-20 Thread Luca C.
Hi Kyle, Thanks for the reply. So, are you saying I should use a setuid tool instead of AEWP? Can you suggest some recommended way to do it? 2010/7/20 Kyle Sluder > On Tue, Jul 20, 2010 at 1:34 AM, Luca C. > wrote: > > Hi everyone, > > I'm having a strange problem. I create the right authorizat

Re: Can't get "pmset" to work

2010-07-20 Thread Kyle Sluder
On Tue, Jul 20, 2010 at 4:48 PM, Luca C. wrote: > Hi Kyle, > Thanks for the reply. > So, are you saying I should use a setuid tool instead of AEWP? Can you > suggest some recommended way to do it? The go-to reference is BetterAuthorizationSample, but that has been updated to no longer use a setui

mach_msg timing out + QuickTime

2010-07-20 Thread Kevin Wojniak
I have a project where there's a plugin that gets loaded into new processes (it's quite hacky) and a controller app that communicates with it via mach messages. I am just fixing bugs with it (didn't originally design it), but there is an issue that is 100% reproducible where a process that uses

Re: case-insensitive but case-ordered sort

2010-07-20 Thread Deborah Goldsmith
NB: 1. Standard ordering for most languages is capitals before lowercase. 2. Some languages have lowercase first. 3. -localizedStandardCompare: will take care of this for you. In general, it’s better to leave decisions like this to the system. Sorts of lists to be shown to end-users should never

Missing resize control when NSScrollView.wantsLayer = YES? (bumped)

2010-07-20 Thread Glen Low
When I set the wantsLayer property to YES on an NSScrollView in Interface Builder, the resulting scroll view is missing the resize control, although user resizing itself still works. In addition, the focus rings around text fields seem much thinner. Any way I can re- establish the resize con

RE: case-insensitive but case-ordered sort

2010-07-20 Thread Jeff Laing
> aAbBcCdDeEfF .. etc with everything outside the letter space sorting > 'naturally' and coming after the letters (I actually don't care too much about > the last bit honestly they can go where they like as long as it's outside the > alphabet range). > > so > > myClass comes before

Re: WebView pagination for printing

2010-07-20 Thread Gideon King
I absolutely agree that it's possible to moderately easily set up a view hierarchy that will allow for automatic pagination etc and work with object oriented methodologies to accomplish the goal, but there is a certain amount of grunt work in doing this, and the whole point of having frameworks

Re: WebView pagination for printing

2010-07-20 Thread Kyle Sluder
On Tue, Jul 20, 2010 at 6:35 PM, Gideon King wrote: > I absolutely agree that it's possible to moderately easily set up a view > hierarchy that will allow for automatic pagination etc and work with object > oriented methodologies to accomplish the goal, but there is a certain amount > of grunt

Source file paths showing up in strings of executable

2010-07-20 Thread Daniel DeCovnick
Not sure if this is the right list, but since it seems to be exclusive to Obj-C, I'm sending it here. Recently I've noticed that running the command line program "strings" against a release build (with debugging or all symbols stripped) reveals several full paths of source code files, speci

Re: Source file paths showing up in strings of executable

2010-07-20 Thread Kyle Sluder
On Jul 20, 2010, at 10:05 PM, Daniel DeCovnick wrote: > Not sure if this is the right list, but since it seems to be exclusive to > Obj-C, I'm sending it here. Questions about Objective-C, and not about the Cocoa APIs specifically, is more on-topic on the objc-language list. > > Recently I'

Re: Source file paths showing up in strings of executable

2010-07-20 Thread Kyle Sluder
On Jul 20, 2010, at 10:17 PM, Kyle Sluder wrote: > Are you remembering to strip debug symbols? Apparently my reading comprehension is flawed as you did point out you were stripping symbols. Try running the preprocessor on your source files and searching the resulting source for your filename

Re: Source file paths showing up in strings of executable

2010-07-20 Thread Jeff Johnson
Hi Daniel. Anything that uses __FILE__ would cause the source file to be compiled into the executable. Do you NSAssert? The definition of NSAssert includes __FILE__. If you don't want assertions to be complied into the app, you can define NS_BLOCK_ASSERTIONS. -Jeff On Jul 21, 2010, at 12:05

Re: Source file paths showing up in strings of executable

2010-07-20 Thread Daniel DeCovnick
That's probably it, thanks!! On Jul 20, 2010, at 10:23 PM, Jeff Johnson wrote: > Hi Daniel. > > Anything that uses __FILE__ would cause the source file to be compiled into > the executable. Do you NSAssert? The definition of NSAssert includes > __FILE__. If you don't want assertions to be com