[Solved] Need help animating a view-switch

2009-03-26 Thread WT
Hello again, the solution was to replace the forView argument below [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView: curViewController.view cache: YES]; with its container view, which happens to be the window, in my case:

Re: Shortcut handling in different keyboard layouts

2009-03-26 Thread Eric Schlegel
On Mar 26, 2009, at 10:16 AM, Rimas M. wrote: Take iTunes as example. With US layout enabled, pressing Cmd+Y calls Preferences. Meanwhile to do the same in German layout you need to press also Cmd+Y, but "Y" button is not the same as in US and produces different code. In this particular case,

Re: NSFileManager: can't set group ID on 10.4

2009-03-26 Thread Sidney San Martín
I'm using +[NSFileManager defaultManager]. On Mar 26, 2009, at 10:35 PM, Stephen J. Butler wrote: On Thu, Mar 26, 2009 at 6:56 PM, Sidney San Martín wrote: I'm using -[NSFileManager changeFileAttributes:atPath:] to change a file's user ID, group ID, and POSIX permissions. On my 10.5.6 mach

NSKeyedUnarchiver "incomprehensible archive" error

2009-03-26 Thread Joe Turner
Hey, I have an iphone and mac client of my app. To get data between them, I am using NSNetServices. The data is first archived using an NSKeyedArchiver, then unarchived using an NSKeyedUnarchiver. But, sometimes, when it is unarchinving, I get this error "*** Terminating app due to uncaug

Re: Comparing path strings

2009-03-26 Thread Adam R. Maxwell
On Mar 26, 2009, at 7:14 PM, Gregory Weston wrote: Jean-Daniel Dupas wrote: An other way may be to convert them into FSRef (using FSPathMakeRef ()) and then compare them using FSCompareFSRefs() There's a risk to that solution, though. A longstanding bug (2489632) in FSPathMakeRef (and th

Re: NSFileManager: can't set group ID on 10.4

2009-03-26 Thread Stephen J. Butler
On Thu, Mar 26, 2009 at 6:56 PM, Sidney San Martín wrote: > I'm using -[NSFileManager changeFileAttributes:atPath:] to change a file's > user ID, group ID, and POSIX permissions. On my 10.5.6 machine, this works > flawlessly, but on my 10.4.11 machine the group ID > (NSFileGroupOwnerAccountID) doe

Design advice: NSView vs CALayer for subviews

2009-03-26 Thread Luc Vandal
Hi, I have a have design dilemma for a new app. Basically, the app will display visual representations of entities in within an NSView and I'm not sure if I should go with NSView or CALayer. The app would look kind of the CoreData view in Xcode when editing a data model, where you can sel

Re: Comparing path strings

2009-03-26 Thread Gregory Weston
Jean-Daniel Dupas wrote: Le 26 mars 09 à 13:22, Jerry Krinock a écrit : On 2009 Mar 26, at 01:04, Oleg Krupnov wrote: Am I missing a method specifically intended for path comparison? Not that I know of. But you are missing the method for preprocessing them before comparison. Look at:

Need help animating a view-switch

2009-03-26 Thread WT
Hello, I'm writing a multi-view application for the iPhone, so I set up a root view controller and several other view controllers. The root view controller's view is actually set at all times to the view of the currently active view controller, so the application delegate doesn't need to

User experiencing crash with no report/ log

2009-03-26 Thread mike woodworth
Hello all, I'm tearing my hair out.. we have a user who's copy of our app simply closes. OSX does not bring up the crash reporter and we get no logs written out in crashreporter. He's sent console logs and I see nothing suspicious being logged to console either. Does anyone have any id

Re: NSPasteboard issue

2009-03-26 Thread Michael Ash
On Thu, Mar 26, 2009 at 7:53 PM, Michael Swan wrote: >        if (data = nil) >        { >                return; >        } >        // Here data = NULL Of course it is, you just assigned nil to it! Two pieces of advice: 1) Turn on more warnings. Your compiler can tell you about basic mistakes

NSFileManager: can't set group ID on 10.4

2009-03-26 Thread Sidney San Martín
I'm using -[NSFileManager changeFileAttributes:atPath:] to change a file's user ID, group ID, and POSIX permissions. On my 10.5.6 machine, this works flawlessly, but on my 10.4.11 machine the group ID (NSFileGroupOwnerAccountID) does not change. It's the same executable, running as root in bo

NSPasteboard issue

2009-03-26 Thread Michael Swan
Hello all, I am working on copy/paste in Core Data and have been following the NSPersistentDocument Core Data Tutorial tutorial from http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/05_CopyAndPaste/copyAndPaste.html I am having a problem with the pasteboard

Advice on the suitability of Core Animation in this situation

2009-03-26 Thread Kiel Gillard
Hi all, We're developing a document based app that displays many potentially small and large shapes within a given document, much like a CAD app. We've gone down the path of Core Animation so far and it works for the most part. But we're often limited by the 2048x2048 OpenGL texture size

Re: Reading one line at a time using NSFileHandle

2009-03-26 Thread Michael Ash
On Thu, Mar 26, 2009 at 5:48 PM, Erg Consultant wrote: > Tried that approach too. Problem with using NSString is that when it comes > time to write the line out to the new file, I need an NSData and to create > one, I have to use NSString's getBytes or getCharacters. Those only return > unicode

Re: [Q] Strange Drag & Drop from my app to FCP project window

2009-03-26 Thread Michael Ash
On Thu, Mar 26, 2009 at 2:35 PM, JongAm Park wrote: > Oh.. Thank you for pointing that out.. > > By the way, it is not clear what path means in Apple's document. For some > part of the document they use the term "path" for URL string or vice versa. > But anyway, thank you again. Example? A URL is

Re: Reading one line at a time using NSFileHandle

2009-03-26 Thread Ken Thomases
On Mar 26, 2009, at 4:48 PM, Erg Consultant wrote: Problem with using NSString is that when it comes time to write the line out to the new file, I need an NSData and to create one, I have to use NSString's getBytes or getCharacters. No, you should use -[NSString dataUsingEncoding:]. If you

Re: Reading one line at a time using NSFileHandle

2009-03-26 Thread Erg Consultant
Tried that approach too. Problem with using NSString is that when it comes time to write the line out to the new file, I need an NSData and to create one, I have to use NSString's getBytes or getCharacters. Those only return unicode arrays, which, when I go to write to a text file gives me a '?'

Re: CoreLocation

2009-03-26 Thread Alexander Spohr
Your name is „Developer“? Verify by starting the simulator and look what location it shows. If it is Apples mothership your name IS Developer. atze Am 26.03.2009 um 21:30 schrieb Development: Is there anything in MacOS X 10.5x that provides the same functionality as CoreLocation

Re: OpenGL context sharing

2009-03-26 Thread Alexander Spohr
Sounds like your context is not set. How do you call the „drawing code“ in B? Possible solution: Make a subclass of NSOpenGLView that overrides drawRect: in A Give it a delegate and make some instance from B the delegate. Trigger [NSOpenGLViewSubclass display] NSOpenGLViewSubclass should then tel

Re: Confounding crash, not much to go on except a stack trace

2009-03-26 Thread Nick Zitzmann
On Mar 26, 2009, at 2:33 PM, Harry Jordan wrote: I was wondering if anyone could shed light on this strange error that occurs, sometimes, (never when I'm actually trying to reproduce it) when clicking in the application menu while running a modal Open Panel. #00x816f5d36 in mach_msg_

Re: CoreLocation

2009-03-26 Thread Michael K McCarty
At C4 in this years Iron Coder there was an entry for a Desktop CoreLocation. http://developer.casgrain.com/files/DesktopCoreLocation.zip Michael On Thu, 26 Mar 2009 13:30:55 -0700 Development wrote: > Is there anything in MacOS X 10.5x that provides the same > functionality as CoreLocati

Confounding crash, not much to go on except a stack trace

2009-03-26 Thread Harry Jordan
I was wondering if anyone could shed light on this strange error that occurs, sometimes, (never when I'm actually trying to reproduce it) when clicking in the application menu while running a modal Open Panel. #00x816f5d36 in mach_msg_trap #10x816fd373 in mach_msg #20x81915c4f in CF

OpenGL context sharing

2009-03-26 Thread Clemens Arth
Hi, I got a question to a rather weird problem I came across. We are developing an entire software suite in a set of shared libraries which are linked together with some type of Bootloader to an application. One library contains stuff related to IO, one contains rendering stuff and so on. I h

Re: Reading one line at a time using NSFileHandle

2009-03-26 Thread Jean-Daniel Dupas
If this is a small file, just create an NSString and iterate over lines. Here is a simple snippet that count number of lines in a string. You can modify it for your purpose. NSString *string; unsigned numberOfLines, index, stringLength = [string length]; for (index = 0, numberOfLines = 0; inde

Re: CoreLocation

2009-03-26 Thread Dave DeLong
There is no CoreLocation framework in Leopard. The simulator has a hardcoded coordinate it uses when simulating a GPS fix. (That location is 1 Infinite Loop in Cupertino). The closest you'd be able to get is to get the machine's external IP address and try to get a location on that. Dav

Re: CoreLocation

2009-03-26 Thread Luke the Hiesterman
The GPS coordinates provided by the iPhone Simulator are always in Cupertino CA. There is no GPS chip in your laptop. Luke On Mar 26, 2009, at 1:30 PM, Development wrote: Is there anything in MacOS X 10.5x that provides the same functionality as CoreLocation does? I'm assuming that there is

CoreLocation

2009-03-26 Thread Development
Is there anything in MacOS X 10.5x that provides the same functionality as CoreLocation does? I'm assuming that there is a gps locator in my Laptop since simulator applications using gps appear to work. Maybe I'm just totally wrong. ___ Cocoa-

Re: Reading one line at a time using NSFileHandle

2009-03-26 Thread Erg Consultant
I read the CocoaBuilder thread to no avail. fgets won't work in my case because my text file contains special characters which fgets mangles. BTW, my file is not large - less than 1K. And I know it's encoding - MacRoman. And I know the line endings "/n". But what I don't know is which API to us

titleView not centered

2009-03-26 Thread Joe Turner
Hey, I recenrly wanted to change the font, and color of the title of a NavigationItem. So, I decided to use titleView, and have my own label. The issue is, on one of my views, I have a leftBarButtonItem, which pushes the titleView over to the right. Is there a way to stop this from happen

Re: [Q] Strange Drag & Drop from my app to FCP project window

2009-03-26 Thread JongAm Park
Oh.. Thank you for pointing that out.. By the way, it is not clear what path means in Apple's document. For some part of the document they use the term "path" for URL string or vice versa. But anyway, thank you again. On Mar 26, 2009, at 9:36 AM, glenn andreas wrote: On Mar 26, 2009, a

Re: Converting a LDragTask to Cocoa's dragImage

2009-03-26 Thread Eric Gorr
On Mar 26, 2009, at 1:19 PM, Eric Gorr wrote: I have a old LDragTask that looks like: LDragTask drag( ..., ..., ..., kMyDragType, &data, sizeof(DataType*), flavorNotSaved ); Eventually, GetFlavorType(inDragRef, inItemRef, 1, &flType); is called and flType is assigned the value of kMyDrag

Re: NSView Redrawing Issue ...

2009-03-26 Thread Mic Pringle
Hi Mike, That was it, thank you for pointing that out. Changed all instances where I'd used rect to [self bounds] and it works a charm. -Mic 2009/3/26 Michael Ash : > On Wed, Mar 25, 2009 at 5:53 PM, Mic Pringle wrote: >> Hi, >> >> I've created a custom view to replicate the blue panel at the

Re: KVC-KVO compliance - noob questions

2009-03-26 Thread I. Savant
2009/3/26 Тимофей Даньшин : > Hi. I'm new to the field of KVC/KVO, but I want to master it. > Are there any standard tests to check whether my objects are KVC/KVO > compliant? And are there, perhaps, simpler and less profound explanations of > that subject, than the ones on the Apple site? Your

KVC-KVO compliance - noob questions

2009-03-26 Thread Тимофей Даньшин
Hi. I'm new to the field of KVC/KVO, but I want to master it. Are there any standard tests to check whether my objects are KVC/KVO compliant? And are there, perhaps, simpler and less profound explanations of that subject, than the ones on the Apple site? Thank you for your attention and repl

Re: Shortcut handling in different keyboard layouts

2009-03-26 Thread I. Savant
On Thu, Mar 26, 2009 at 1:16 PM, Rimas M. wrote: > I have a question about how properly keyboard shortcuts should be > handled. For example "pressing key X performs action W". How to ensure > that this will work with all keyboard layouts (Cyrillic etc)? I believe the ShortcutRecorder project o

Converting a LDragTask to Cocoa's dragImage

2009-03-26 Thread Eric Gorr
I have a old LDragTask that looks like: LDragTask drag( ..., ..., ..., kMyDragType, &data, sizeof(DataType*), flavorNotSaved ); Eventually, GetFlavorType(inDragRef, inItemRef, 1, &flType); is called and flType is assigned the value of kMyDragType. The question is how do I setup the pasteb

Shortcut handling in different keyboard layouts

2009-03-26 Thread Rimas M.
Hello, I have a question about how properly keyboard shortcuts should be handled. For example "pressing key X performs action W". How to ensure that this will work with all keyboard layouts (Cyrillic etc)? Currently I am checking key down event characters, but that is a wrong way, because when lay

Re: [Q] Strange Drag & Drop from my app to FCP project window

2009-03-26 Thread glenn andreas
On Mar 26, 2009, at 11:10 AM, JongAm Park wrote: Hello, Computer-Training segleler I also tried using stringByAppendingPathExtension, but it returned even worse result. The stringByAppendingPathExtension removes one slash from "file://localhost/./.../ ..." and makes "file:/localhost/..

Re: NSTableView reloadData from two sources?

2009-03-26 Thread Jo Phils
Hi and thank you for your reply. Well it might not be the best design but after my receiving my drag and initializing my array in the DropView class at that point I thought I could tell my TableView to update. But since all the methods and connections to my TableView are in my Controller class

Re: Custom NSCell issues

2009-03-26 Thread Benjamin Stiglitz
> hello I'm using a custom NSCell in order to draw some elements in an > NSTableView. I've created a simple tableview with 2 row. However my > draws is always put on first row while the second one is empty. > This my code for NSOutlineView delegate http://pastebin.com/m7f5f8a0f > while this is for

Re: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView

2009-03-26 Thread Benjamin Stiglitz
> To implement the proposed interface, one cannot solely use bindings to > accomplish this w/o modeling the intermediary join table. The relationship > management is instead accomplished via code (through NSSets and so on as per > mmalc's example). Correct; not with a straight tableview. You can

[Q] Strange Drag & Drop from my app to FCP project window

2009-03-26 Thread JongAm Park
Hello, Computer-Training segleler I also tried using stringByAppendingPathExtension, but it returned even worse result. The stringByAppendingPathExtension removes one slash from "file://localhost/./.../ ..." and makes "file:/localhost///". Please note that one slash is remove

Re: Comparing path strings

2009-03-26 Thread Mike Abdullah
On 26 Mar 2009, at 13:29, Adam R. Maxwell wrote: On Mar 26, 2009, at 6:04 AM, Jean-Daniel Dupas wrote: Le 26 mars 09 à 13:22, Jerry Krinock a écrit : On 2009 Mar 26, at 01:04, Oleg Krupnov wrote: Am I missing a method specifically intended for path comparison? Not that I know of. Bu

Re: NSTableView reloadData from two sources?

2009-03-26 Thread I. Savant
On Thu, Mar 26, 2009 at 11:53 AM, Jo Phils wrote: > My question is it's easy to send a reloadData message to my TableView from my > Controller class since it's connected but how can I send a reloadData message > to my TableView from my DropView class if needed? You shouldn't. Your controller

NSTableView reloadData from two sources?

2009-03-26 Thread Jo Phils
Hello, In my project I have 2 classes I created: Controller class - NSObject subclass DropView class - NSView subclass In my DropView class I accept drops and initialize an NSArray with the items. Then back in my Controller class I continue the processing where my Controller class is also the

Re: Reading one line at a time using NSFileHandle

2009-03-26 Thread Michael Ash
On Wed, Mar 25, 2009 at 11:44 PM, Jeff Laing wrote: >>> Is there a way to read one line of a text file at a time >>> using NSFileHandle (the way fgets does)? >> >> This code illustrates how you might approach >> filtering lines of data obtained through an NSFileHandle. > > I've come across this pr

Re: Sorting through .plist in NSDictionary

2009-03-26 Thread Michael Ash
On Wed, Mar 25, 2009 at 11:49 PM, Jerry Krinock wrote: > > On 2009 Mar 25, at 19:53, Pierce Freeman wrote: > >> I am attempting to sort through the contents of a .plist file in >> NSDictionary, but am running into some problems.  Since .plist files are >> kind of like a "tree", I can't just call o

Re: Two view controllers in one set of files (Noob question)

2009-03-26 Thread Weydson Lima
Thanks for the replies. I looked around the net and found some tutorials on how to create multiple views in a single nib file. I was just confused on how to do that. But you are right, it's better to have unique classes files for each views. Weydson On Mar 25, 2009, at 11:31 AM, Weydson L

Re: file system query

2009-03-26 Thread I. Savant
On Thu, Mar 26, 2009 at 10:48 AM, Rich Collyer wrote: > Is there a way to ask the file system if a particular file is open? > > or, are there any open files within a given directory? Search the archives. This FAQ was just asked and answered recently. Those threads all point to "lsof". -- I.S.

file system query

2009-03-26 Thread Rich Collyer
Is there a way to ask the file system if a particular file is open? or, are there any open files within a given directory? +++ Rich Collyer - Senior Software Engineer +++ smime.p7s Description: S/MIME cryptographic signature __

Re: Porting BASIC text mangling app to Objective-C

2009-03-26 Thread Keary Suska
On Mar 25, 2009, at 12:06 AM, Ricardo Balderas wrote: I'm starting with a Cocoa Document Based project, but am having trouble with Opening and Saving of documents. The stump comments in MyDocument.m are beyond me still, and I've tried the "Building a Text Editor in 15 minutes" example, but

Re: Reading one line at a time using NSFileHandle

2009-03-26 Thread Matt Neuburg
On Wed, 25 Mar 2009 19:36:01 -0700 (PDT), Erg Consultant said: >Is there a way to read one line of a text file at a time using NSFileHandle (the way fgets does)? Is it my imagination or did we not just have a big thread about this...?

RE: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView

2009-03-26 Thread Jon C. Munson II
Namaste! I've taken a good look at mmalc's ToManyCheckbox example (thank you for that). I'd like some confirmation on what I believe to be true after the research I've done so far to make sure I didn't miss something. Given: Entity A and Entity B have a many-to-many relationship with each other

RE: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView

2009-03-26 Thread Jon C. Munson II
[Jon C. Munson II]  OK.  Benjamin Stiglitz responded suggesting I take a look at the ToManyCheckbox example on mmalc's page, so I'll do that and see if that clarifies things.  Also, I noticed in the iClass example that code is used to support the relationship and so on.  Is that the recommended "t

Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys

2009-03-26 Thread Marc Van Olmen
I just wanted to update this thread so that people that google for info see this update. I got a confirmation from Apple that they are aware of this bug and that they are working on it. regards, Marc On Mar 19, 2009, at 6:16 PM, m...@sky4studios.be wrote: On Mar 19, 2009, at 12:03, m

Re: CoreData and NSOutlineView.

2009-03-26 Thread Scott Andrew
Solved.. Due to the way the data is modeled using a data sorce delegate is the best way to go. On Mar 25, 2009, at 10:59 PM, Scott Andrew wrote: I have a question, may know the answer already. I am looking at using core data to store the project for my application I am starting. I want a c

Re: Comparing path strings

2009-03-26 Thread Adam R. Maxwell
On Mar 26, 2009, at 6:04 AM, Jean-Daniel Dupas wrote: Le 26 mars 09 à 13:22, Jerry Krinock a écrit : On 2009 Mar 26, at 01:04, Oleg Krupnov wrote: Am I missing a method specifically intended for path comparison? Not that I know of. But you are missing the method for preprocessing the

Re: Comparing path strings

2009-03-26 Thread Jean-Daniel Dupas
Le 26 mars 09 à 13:22, Jerry Krinock a écrit : On 2009 Mar 26, at 01:04, Oleg Krupnov wrote: Am I missing a method specifically intended for path comparison? Not that I know of. But you are missing the method for preprocessing them before comparison. Look at: -[NSString stringBySt

Re: Comparing path strings

2009-03-26 Thread Jerry Krinock
On 2009 Mar 26, at 01:04, Oleg Krupnov wrote: Am I missing a method specifically intended for path comparison? Not that I know of. But you are missing the method for preprocessing them before comparison. Look at: -[NSString stringByStandardizingPath] __

Transition Problem in CALayer.....

2009-03-26 Thread Anshul jain
Hi All, I am trying to play a transition every time the content of layer changes for that i have over written-(id)actionForKey: (NSString *)key . it is working fine. But when the CALayer is scale say by 0.5 then the transition doesn't happen nicely. Can anybody help me out. Regards, An

Comparing path strings

2009-03-26 Thread Oleg Krupnov
This is a silly question, but I can't figure it out. I have two strings (NSString), both containing file paths. Is it valid to use -[NSString isEqualToString] to compare them? What about case sensitivity and other issues with paths? Am I missing a method specifically intended for path comparison? T