Re: NSXML Parsing Problem

2010-03-25 Thread Jens Alfke
On Mar 25, 2010, at 7:34 PM, Dave wrote: > I was wondering if changing the XML charset would solve the problem? From > searching the Web I think the problem could be that we are assuming UTF-8, I > was wondering if we changed it to one of the ISO char sets if this would > solve it. No, it has

Re: The fastest way to render bitmaps to screen in Cocoa on Snow Leopard?

2010-03-25 Thread Michael Ash
On Wed, Mar 24, 2010 at 10:02 AM, Oleg Krupnov wrote: > Hi, > > I need to open a bitmap file, perhaps do some filtering, and render it > to the screen with the maximum possible performance. > > I am allowed to assume Snow Leopard. > > Now I am a bit confused what technology (-ies) I should use to

Re: NSXML Parsing Problem

2010-03-25 Thread Keary Suska
On Mar 25, 2010, at 8:34 PM, Dave wrote: > Hi Jens, > > Thanks for taking the time to reply. We are a startup and basically just > trying to get thing going with what we have. I'm downloading the XML data via > a URL and I could just change the database and strip out the offending > characters

Re: Sync .DS_Store files

2010-03-25 Thread Dave
Hi, I've had similar problems in the past. I usually just filter out the files you mentioned, e.g. ignore them. There are also AppleScript etc. that will delete them for you, do a google and you are bound to find them. Bottom line: it's not worth trying to treat them as normal files. Al

Re: NSXML Parsing Problem

2010-03-25 Thread Jack Carbaugh
Typically what i do is download the XML into a string ... then if there are special characters that i know about in advance, i can use string class methods to replace them in the string before passing off to the xml parser. just another option to consider. jack On Mar 25, 2010, at 10:34 P

Re: NSXML Parsing Problem

2010-03-25 Thread Dave
Hi Jens, Thanks for taking the time to reply. We are a startup and basically just trying to get thing going with what we have. I'm downloading the XML data via a URL and I could just change the database and strip out the offending characters. I was wondering if changing the XML charset wo

Re: Trouble forking my project

2010-03-25 Thread Eli Bach
On Mar 25, 2010, at 11:51 AM, Dave wrote: > Hi All, > > Regarding: > > On 24 Mar 2010, at 06:05, Eli Bach wrote: >> >> And if you don't have your code in a version control system that supports >> branching [and no, CVS does NOT count], you go to your bedroom and think >> about that while I g

Re: Allowing incoming connections.

2010-03-25 Thread Chris Hanson
On Mar 24, 2010, at 1:15 AM, Ken Thomases wrote: > You can work around this by signing your app properly as part of building it, > but I'm not sure it's common to sign development builds. It’s somewhat common to sign debug builds of Internet applications, using a self-signing certificate: http

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Charles Srstka
On Mar 25, 2010, at 1:10 PM, fabian wrote: > Is it possible to prevent a window from hiding when NSApp is hidden, so it > always stays on screen? I only want the menu bar to go away. Honestly, it sounds like what you really want is to spin off this window into a separate process with LSUIElement

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-25 Thread Quincey Morris
On Mar 25, 2010, at 15:39, Joanna Carter wrote: > But, this dictionary method does mean populating the dictionary before > editing and then shoving it into the object controller, then doing the > reverse after editing. Well, this statement confuses me. The dictionary only has to be populated a

Re: Sync .DS_Store files

2010-03-25 Thread Seth Willits
On Mar 25, 2010, at 4:08 PM, Jens Alfke wrote: >> I am trying to sync a folder containing several files and the hidden file >> .DS_Store. I know that this file contains special info about the directory, >> so I sync it too. Should I really do that? > > Ideally you should, because it contains some

Re: Determining an inter-application drag source

2010-03-25 Thread Steve Christensen
I'm curious why you need to know where the drag originated since it generally shouldn't matter. Do you have to do some extra work in one case? And what happens if you see a drag from another application? On Mar 25, 2010, at 7:55 AM, Jeffrey J. Early wrote: Is there any way to determine the

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Fri, Mar 26, 2010 at 12:05 AM, Jens Alfke wrote: > > On Mar 25, 2010, at 12:52 PM, fabian wrote: > > Sorry for being unclear. I want NSApp to behave normally, i.e. when the >> user >> hides it (with Command+H) the menu bar and all windows _except this one >> window_ should hide. >> > > Easy:

Re: The fastest way to render bitmaps to screen in Cocoa on Snow Leopard?

2010-03-25 Thread Paul Sanders
> I need to open a bitmap file, perhaps do some filtering, and > render it > to the screen with the maximum possible performance. Try it the easy way, see if it's fast enough. NSImage can load most common bitmap file formats and draw itself. Paul Sanders. __

Re: NSXML Parsing Problem

2010-03-25 Thread Jens Alfke
On Mar 25, 2010, at 8:47 AM, Dave wrote: I am getting an error using NSXMLParser if it encounters a British Pound Sign - it's encoded as & pound ; (minus the spaces). Any idea on how to solve this?? Basic XML only defines a handful of character entities. The other common ones are part o

Re: Sync .DS_Store files

2010-03-25 Thread Jens Alfke
On Mar 25, 2010, at 9:42 AM, gMail.com wrote: I am trying to sync a folder containing several files and the hidden file .DS_Store. I know that this file contains special info about the directory, so I sync it too. Should I really do that? Ideally you should, because it contains some user

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Jens Alfke
On Mar 25, 2010, at 12:52 PM, fabian wrote: Sorry for being unclear. I want NSApp to behave normally, i.e. when the user hides it (with Command+H) the menu bar and all windows _except this one window_ should hide. Easy: just set window.canHide = NO; —Jens ___

Re: The fastest way to render bitmaps to screen in Cocoa on Snow Leopard?

2010-03-25 Thread Ariel Feinerman
Hi Oleg, did you look for in Mac Reference Library? http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/QuartzCoreFramework/Classes/CIImage_Class/Reference/Reference.html http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_intr

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-25 Thread Joanna Carter
Hi Quincey > Or, I'd prefer to give my File's Owner object a "currentObject" property and > bind the object controller to that. I can understand that. It's beginning to look like you're more anal about OO design than I am ;-) > Or, if circumstances preclude either of these approaches, I'd prob

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Thu, Mar 25, 2010 at 9:55 PM, Philip Mobley wrote: > On Mar 25, 2010, at 12:52 PM, fabian wrote: > > > Sorry for being unclear. I want NSApp to behave normally, i.e. when the > user hides it (with Command+H) the menu bar and all windows _except this one > window_ should hide. I do know when th

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Thu, Mar 25, 2010 at 9:25 PM, Knut Lorenzen wrote: > > So why not use [NSApp activateIgnoringOtherApps: YES], do all the stuff you > need to do and finally use [NSApp deactivate] to resign control? > > I don't need to activate the app to display a window with a level higher than NSNormalWindow

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Knut Lorenzen
Am 25.03.2010 um 20:52 schrieb fabian: > Sorry for being unclear. I want NSApp to behave normally, i.e. when the user > hides it (with Command+H) the menu bar and all windows _except this one > window_ should hide. I am no expert here, but I don't believe that is possible. > I do know when this

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
Sorry for being unclear. I want NSApp to behave normally, i.e. when the user hides it (with Command+H) the menu bar and all windows _except this one window_ should hide. I do know when this floating window is supposed to be on screen and when it's not; it's displayed for a few seconds in response t

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Knut Lorenzen
Am 25.03.2010 um 19:44 schrieb fabian: > Thanks, but the "Hide on Deactivate" option only works when NSApp is > deactived, not hidden (as in Command+H). The window I want to stay on screen > is a system wide icon window like the one you see when adjusting screen > brightness, so it's most definit

iPhone movie timestamp

2010-03-25 Thread John Wright
Hi, I writing an app that among other things organizes the movies a user takes by the date and time the movie was shot. Is there a way to get this information? Is the only way to use the timestamp of the movie file on the phone or is there a way to figure this out by looking inside the movie fil

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-25 Thread Quincey Morris
On Mar 25, 2010, at 11:36, Joanna Carter wrote: > My rubbish example was to demonstrate that you might want to access the > object that is the content of an NSObjectController, as that my be the only > way to determine which object is being edited. So we're hypothesizing that there's some code

Re: Tooltips over buttons ?

2010-03-25 Thread Bill Hernandez
On Mar 24, 2010, at 11:53 PM, Jerry Krinock wrote: > On 2010 Mar 24, at 21:10, Bill Hernandez wrote: > >> I've looked for a couple of hours trying to find a simple example on how to >> implement tooltips over three graphic buttons. > >> Most of the IB info I found during my search is very old.

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
Hi Joanna, Ken, Knut, Thanks, but the "Hide on Deactivate" option only works when NSApp is deactived, not hidden (as in Command+H). The window I want to stay on screen is a system wide icon window like the one you see when adjusting screen brightness, so it's most definitely the expected behavior

Re: Bindings and Observing

2010-03-25 Thread Laurent Daudelin
On Mar 25, 2010, at 11:29, Sean McBride wrote: > On Thu, 25 Mar 2010 11:25:46 -0700, Laurent Daudelin said: > >> I see. I thought about observing those properties managed by the user >> defaults controller but after I read the document "Controller Key-Value >> Observing Compliance", I saw that NS

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-25 Thread Joanna Carter
Hi Quincey > Well, I'm probably missing your point, but why wouldn't you get the Core Data > object directly and leave the NSObjectController out of it? After editing, > the object has already been updated. Yes, you're missing the point :-) My rubbish example was to demonstrate that you might

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Joanna Carter
Hi Fabian > Is it possible to prevent a window from hiding when NSApp is hidden, so it > always stays on screen? I only want the menu bar to go away. Simply uncheck the "Hide on Deactivate" option for the window in IB. Joanna -- Joanna Carter Carter Consulting _

Re: Bindings and Observing

2010-03-25 Thread Sean McBride
On Thu, 25 Mar 2010 11:25:46 -0700, Laurent Daudelin said: >I see. I thought about observing those properties managed by the user >defaults controller but after I read the document "Controller Key-Value >Observing Compliance", I saw that NSUserDefaultsController is a key- >value-observing only for

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Ken Thomases
On Mar 25, 2010, at 1:10 PM, fabian wrote: > Is it possible to prevent a window from hiding when NSApp is hidden, so it > always stays on screen? I only want the menu bar to go away. That doesn't make any sense. You "want the menu bar to go away"? So there would be no menu bar? Or so that som

Re: Bindings and Observing

2010-03-25 Thread Laurent Daudelin
On Mar 25, 2010, at 00:32, Quincey Morris wrote: > On Mar 24, 2010, at 23:42, Laurent Daudelin wrote: > >> In the Preferences.nib file, the checkbox and the textfield are bound to the >> defaults controller. So far, so good. In the application delegate's >> applicationWillFinishLaunching:, they

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Knut Lorenzen
Am 25.03.2010 um 19:10 schrieb fabian: > Is it possible to prevent a window from hiding when NSApp is hidden, so it > always stays on screen? I only want the menu bar to go away. Do you really mean "hidden" (like Command-H) or do you mean "not the frontmost application"? If the latter is the c

Re: Toolbar customizer crashes on Leopard when using menu delegate

2010-03-25 Thread Peter Ammon
On Mar 25, 2010, at 9:10 AM, Markus Spoettl wrote: > Hi Peter, > > On Mar 24, 2010, at 11:13 PM, Peter Ammon wrote: >> Yes, this is a known problem on Leopard. The issue is that when NSToolbar >> shows the customization palette, well, a view can't be in the toolbar and >> the customization pa

Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
Is it possible to prevent a window from hiding when NSApp is hidden, so it always stays on screen? I only want the menu bar to go away. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Trouble forking my project

2010-03-25 Thread Dave
Hi All, Regarding: On 24 Mar 2010, at 06:05, Eli Bach wrote: And if you don't have your code in a version control system that supports branching [and no, CVS does NOT count], you go to your bedroom and think about that while I go and make a switch to punish you with. If you're a one or

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-25 Thread Quincey Morris
On Mar 25, 2010, at 10:25, Joanna Carter wrote: > How about, with a Core Data app, getting the content of an NSObjectController > after editing? > { > ... > > Customer *editedCustomer = [self.customerController content]; > > ... > } Well, I'm probably missing your point, but why wouldn't yo

Re: Trouble forking my project

2010-03-25 Thread Sean McBride
On Thu, 25 Mar 2010 12:38:10 -0500, Ken Thomases said: >The problem isn't so much the file format, it's Interface Builder. IB >is too prone to renumbering/reordering objects or implementing a simple >property change as removal of the object and replacement with a new object. Exactly. Try this:

Re: Trouble forking my project

2010-03-25 Thread Ken Thomases
On Mar 25, 2010, at 12:23 PM, davel...@mac.com wrote: > On Mar 25, 2010, at 11:12 AM, Sean McBride wrote: > >> That's all fine and good until you need to change a xib (or worse, >> nib). xibs are neither diffable nor auto-mergeable. In my experience, >> they are the single biggest PITA when try

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-25 Thread Joanna Carter
Hi Quincey > This is not a good approach to MVC programming. You're trying to take short > cuts by updating your data model "by remote control" -- that is, by > programming NSArrayControllers instead of your data model. That's a bit like > trying to disassemble a precision watch using a crowbar

Re: Trouble forking my project

2010-03-25 Thread davelist
On Mar 25, 2010, at 11:12 AM, Sean McBride wrote: > On Wed, 24 Mar 2010 16:48:49 -0700, Dave Carrigan said: > >> Create a branch for your feature, do all the work on that branch, then >> merge it to the trunk when it's ready. Put your released product in a >> different branch and do your bugfixe

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-25 Thread Quincey Morris
On Mar 25, 2010, at 08:36, Gustavo Pizano wrote: > for(ItemXInvoice * acutalItem in [_itemsArrayController > arrangedObjects]){ > [acutalItem setValue:[acutalItem > valueForKeyPath:@"toItem.unitPrice"] forKey:@"creationItemPrice"]; > [acutalItem setValue:[self

Re: recursion anxiety

2010-03-25 Thread James Maxwell
LOL!!! Yipes, how embarrassed am I So clever, yet so stupid... thanks a million. J. On 2010-03-25, at 9:58 AM, Howard Siegel wrote: > You never seem to be capturing the result of the recursive calls for return > to the caller. > > You final if block should look like this: > >i

Re: recursion anxiety

2010-03-25 Thread Manfred Schwind
> Can anyone see why the caller is getting the first match, rather than the > last? > Immense thanks to anyone who can see what's up. I think in the line when going down the recursion, you have to assign the result to endNode: endNode = [self getTrieNodeFromContextSequence:mutableSeq withNode:e

Re: recursion anxiety

2010-03-25 Thread Howard Siegel
You never seem to be capturing the result of the recursive calls for return to the caller. You final if block should look like this: if(([endNode depth] < ([self contextDepth] - 1)) && ([mutableSeq count] > 1) && (found == YES)) { [mutableSeq removeObjectAtIndex:0];

recursion anxiety

2010-03-25 Thread James Maxwell
Hi Folks, I've had problems with recursive functions before, but this one's making me crazy. I have a trie (tree) data structure and I'm trying to find a sequence of ints in the trie. - (HSMM_TrieNode*) getTrieNodeFromContextSequence:(NSMutableArray *)aSequence withNode:(HSMM_TrieNode*) aNode

Sync .DS_Store files

2010-03-25 Thread gMail.com
Hi, I am trying to sync a folder containing several files and the hidden file .DS_Store. I know that this file contains special info about the directory, so I sync it too. Should I really do that? The problem is that when I modify a file, /Dst/A/B/file.txt e.g. I replace it with a newer file,

Re: Toolbar customizer crashes on Leopard when using menu delegate

2010-03-25 Thread Markus Spoettl
Hi Peter, On Mar 24, 2010, at 11:13 PM, Peter Ammon wrote: > Yes, this is a known problem on Leopard. The issue is that when NSToolbar > shows the customization palette, well, a view can't be in the toolbar and the > customization palette simultaneously, so NSToolbar "copies" the popup via > N

NSXML Parsing Problem

2010-03-25 Thread Dave
Hi All, I am getting an error using NSXMLParser if it encounters a British Pound Sign - it's encoded as & pound ; (minus the spaces). Any idea on how to solve this?? Thanks in Advance All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@li

Core Data doesn't save toMany relations please HELP :S

2010-03-25 Thread Gustavo Pizano
Hello, all. I came up with a problem where my entity Invoice has a toMany relation to an entity called, ItemXInvoice, which hold the quantity and the total price, so when I create an Invoice I add ItemXInvoice's when clciking an add button, these ItemXInvoice's are stored in a NSArrayController

Re: Please help, i'm newbe in cocoa + oracle programming.

2010-03-25 Thread Mark Woollard
Are you compiling your Objective-C code as ObjC++ or straight ObjC? Name your source files with .mm extension to indicate ObjC++. Also read the following: http://developer.apple.com/Mac/library/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocCPlusPlus.html Mark On 15 Mar 2010, at 07:08, Pa

Please help, i'm newbe in cocoa + oracle programming.

2010-03-25 Thread Pavel Subach
i know how-to use occi library in C++ based project on macosx, but when i try including iostream and occi.h in my objective-c class when i build my cocoa application and get error such as Cannot find iostream and more others bug... If anybody know step-by-step guide for implementing occi library

Re: Trouble forking my project

2010-03-25 Thread Sean McBride
On Wed, 24 Mar 2010 16:48:49 -0700, Dave Carrigan said: >Create a branch for your feature, do all the work on that branch, then >merge it to the trunk when it's ready. Put your released product in a >different branch and do your bugfixes on that branch and merge them to >trunk. Don't work on trunk

Determining an inter-application drag source

2010-03-25 Thread Jeffrey J. Early
Is there any way to determine the source of a drag operation outside your own application? For example, if I'm set to receive NSFilenamesPboardType, then I'd like to distinguish between the Finder and Aperture as drag sources. I had thought I'd seen a solution to this at one point, but can't see

Re: [Xcode 3.1.4] "Step Into" broken on Leopard

2010-03-25 Thread Jon Pugh
At 12:02 AM -0700 3/25/10, Brian Willoughby wrote: >>Switch to an Intel Mac, or revert to an older version of Xcode. This was >>unfortunately broken in the last release of Xcode for Leopard, but only on >>PPC Macs, and I wouldn't hold your breath waiting for a fix. > > >Thanks. That's the kind o

[iPhone] Nested UIViewControllers, InterfaceOrientation & Rotation

2010-03-25 Thread Brad Gibbs
I've done some reading and some testing, but can't seem to make this work properly -- ie, I can't get a nested VC's interfaceOrientation property to update to the current interfaceOrientation of the device. I've got a main UIViewController with code to support a toolbar with buttons across the

Re: Bindings and Observing

2010-03-25 Thread Quincey Morris
On Mar 24, 2010, at 23:42, Laurent Daudelin wrote: > In the Preferences.nib file, the checkbox and the textfield are bound to the > defaults controller. So far, so good. In the application delegate's > applicationWillFinishLaunching:, they have those 2 lines: > > [self bind:SKTAppAutosave

Re: [Xcode 3.1.4] "Step Into" broken on Leopard

2010-03-25 Thread Brian Willoughby
On Mar 24, 2010, at 19:17, Nick Zitzmann wrote: On Mar 24, 2010, at 7:44 PM, Brian Willoughby wrote: Another potentially important detail is that I am running Leopard 10.5.8 on a 1.67 GHz PowerPC G4 PowerBook with 2 GB RAM. Any ideas how to fix this? Do I need an even older release of Xco