Re: Mysterious Snow Crash

2009-09-24 Thread Gerriet M. Denkmann
On 24 Sep 2009, at 13:15, Bill Bumgarner wrote: On Sep 23, 2009, at 10:52 PM, Gerriet M. Denkmann wrote: NSLog(@"%s setting url to Downloads; was %@",__FUNCTION__, [self fileURL]); // was: file://localhost/dev/rdisk1s10 Wait. What? Where the HECK did that URL come from

Re: Mysterious Snow Crash

2009-09-24 Thread Bill Bumgarner
On Sep 24, 2009, at 12:05 AM, Gerriet M. Denkmann wrote: Where the HECK did that URL come from? I entered it. /dev/rdisk1s10 is a raw device. It isn't a filesystem, not at all. You are absolutely right. The app is called HFS+ Checker and it does just this: it reads a raw partition (which

Re: System preferences plugin in Snow Leopard

2009-09-24 Thread Jakub Bednar
On Sep 23, 2009, at 7:43 PM, Bill Bumgarner wrote: On Sep 23, 2009, at 6:37 AM, Jakub Bednar wrote: Does please anybody know, what am I missing? Maybe some explicit specification that my plugin is 64-bit capable? Did you turn on GC? System Preferences running under 64 bit mode on Snow Leo

Hide keyboard in iPhone application

2009-09-24 Thread Bartosz Białecki
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com

Re: Exit screen saver programmatically?

2009-09-24 Thread Gabriel Zachmann
Post a mouse down event and the sceensaver engine will remove it for you. That is a good idea -- except I have no idea how to do that. Could you give me a hint how to achieve that? (class / method names?) (Sorry, for asking shuch a dumbquestion.) BTW: just a mouse move event would suffice, is t

How to use Authenticator example to a remote machine?

2009-09-24 Thread Arthur C.
Hi, I've been looking at the Authenticator example code as a starting point for a (very simple) Cocoa client/server message-passing program. Now in the 'client' section there is a line // Lookup the server connection NSConnection *conn = [NSConnection connectionWithRegisteredNa

login items hide box

2009-09-24 Thread Rick C.
hello, i have an app that when added to a user's login items with the hide box checked it still shows its main window when starting up on leopard. on snow leopard it properly stays hidden. on a personal note i had this same issue with mail on leopard and i have a feeling there might be some k

CoreData Mysterious Conditional Data Loss

2009-09-24 Thread Milen Dzhumerov
Hi all, I'm experiencing the weirdest conditional data loss that I've seen in a long time. One of my managed objects has an NSImage property (stored as Transformable). Now here's the bug in summary: If the app bundle which initially created the persistence file (SQLite or XML) gets moved,

Re: login items hide box

2009-09-24 Thread Ron Fleckner
On 24/09/2009, at 10:14 PM, Rick C. wrote: hello, i have an app that when added to a user's login items with the hide box checked it still shows its main window when starting up on leopard. on snow leopard it properly stays hidden. on a personal note i had this same issue with mail on

Re: login items hide box

2009-09-24 Thread Jerry Krinock
On 2009 Sep 24, at 05:47, Ron Fleckner wrote: In part, it says: "Due to a bug in Mac OS X 10.4 and later (up to including 10.4.2, which is the latest release at the time this was written), LoginItemsAE can't handle hidden login items properly. That is, the value of kLIAEHidden is alway

Re: CoreData Mysterious Conditional Data Loss

2009-09-24 Thread I. Savant
On Sep 24, 2009, at 8:38 AM, Milen Dzhumerov wrote: Hi all, I'm experiencing the weirdest conditional data loss that I've seen in a long time. One of my managed objects has an NSImage property (stored as Transformable). Now here's the bug in summary: If the app bundle which initially crea

iPhone to Mac Synchronization

2009-09-24 Thread Gerriet M. Denkmann
I am thinking about an iPhone app which (while it is running) collects data and stores it into some file. And there should be a Mac app, which, when the iPhone is connected to the computer, transfers the collected data to the Mac. Like iPhoto does with photos. Is this possible? Or are iTunes

Re: login items hide box

2009-09-24 Thread Rick C.
thank you both. yes apple events and i just confirmed that adding it manually does work. so i do need to update my code. but i'll be on the lookout for potential LSSharedFileList issues. thank you! rick From: Jerry Krinock To: cocoa dev Sent: Thursday,

Re: iPhone to Mac Synchronization

2009-09-24 Thread Ricky Sharp
This is possible, but only over WiFi. I'm currently working on a feature to do bi-directional syncing between the Mac and iPhone versions of my app. I'm also using Bonjour for self-discovery (if you go this route, make sure to register your service at www.dns-sd.org) Feel free to file an en

Re: CoreData Mysterious Conditional Data Loss

2009-09-24 Thread Milen Dzhumerov
On 24 Sep 2009, at 14:20, I. Savant wrote: We're probably going to need a bit more information than this. You say the icons are "gone". I assume your entity instances are still there and all their other properties are present but only the NSImage attribute is coming back with an empty image?

Re: CoreData Mysterious Conditional Data Loss

2009-09-24 Thread I. Savant
On Sep 24, 2009, at 9:59 AM, Milen Dzhumerov wrote: You got it right first time, many thanks. The images were created using NSImage's initByReferencingFile: which I presume only references the image file. That's what I thought at first (that CoreData stored the path to the image within the

Re: Exit screen saver programmatically?

2009-09-24 Thread Nick Zitzmann
On Sep 24, 2009, at 2:14 AM, Gabriel Zachmann wrote: I want to catch a few key events in my screen saver (like cursor keys, space, return), but if the user clicks any other key, I want the screen saver to exit, just like other screen savers that don't catch any keyboard events. In that c

Re: Can I recompose the Carbon-based app to a Cocoa-based app?

2009-09-24 Thread David Duncan
On Sep 23, 2009, at 6:31 PM, James wrote: Hi all, I have downloaded the "RecordAudioToFile" sample from the apple.dev sample code. I want to implement to record the users voice, so the sample is useful for me. But it is a Carbon-base application. The application I am working on is a Coc

Re: iPhone to Mac Synchronization

2009-09-24 Thread Jens Alfke
On Sep 24, 2009, at 6:38 AM, Ricky Sharp wrote: This is possible, but only over WiFi. I'm currently working on a feature to do bi-directional syncing between the Mac and iPhone versions of my app. I'm also using Bonjour for self-discovery (if you go this route, make sure to register your s

Re: How to use Authenticator example to a remote machine?

2009-09-24 Thread Jens Alfke
On Sep 24, 2009, at 4:11 AM, Arthur C. wrote: The example is for inter-application communication on one machine; I'd like to have that between two machines... NSConnection is part of Distributed Objects. It's possible to run DO between two machines across a TCP connection, but it takes a bi

NSConnection ignores setRequestTimeout: on first request

2009-09-24 Thread Michael C. Silva
I'm using NSConnections (based on NSSocketPorts) for distributed object communications. We just Bonjour to publish NSConnection server availability on the network. However, if you just disconnect the ethernet from the server machine the Bonjour publish 'lingers' for a bit on the client mac

Re: Exit screen saver programmatically?

2009-09-24 Thread Gabriel Zachmann
In that case, then you should pass the unwanted event to the superclass, which will handle the event in that case. Ah, you mean like this, I suppose? [super keyDown: theEvent]; That seems to work like a charm. Thanks a million! (For the record, I thought that user code is not

Re: Drawing text chunks (e.g. paras) in a text view with alternating background colours

2009-09-24 Thread Ross Carter
Hi, Keith. Couple of thoughts: In my NSTextView subclass’s -drawViewBackgroundInRect: method, I get the range of characters in the current -visibleRect: using code similar to this: -visibleRect is a much larger rect than you need, I should think. What's wrong with using the rect passed to

Core Data: relationship 'too large' when saving

2009-09-24 Thread Frederick Bartram
Hi all, I am encountering an error that I have not seen before. While saving in a NSManagedObjectContext I am encountering an error that reports a to-many relationship as 'too large'. This relationship has ~10,000 members but each member is relatively simple consisting of a few short strings

Reduce CPU usage in screensaver?

2009-09-24 Thread Gabriel Zachmann
I wrote a screen saver that basically zooms images at a frame rate of 10 frames/sec. When running, it uses about 60% CPU ! This could be a bit annoying sometimes, if there are other compute intensive processes running, such as video conversions. Is there anything I could do to reduce the CP

Re: Reduce CPU usage in screensaver?

2009-09-24 Thread Shawn Erickson
On Thu, Sep 24, 2009 at 11:43 AM, Gabriel Zachmann wrote: > I wrote a screen saver that basically zooms images at a frame rate of 10 > frames/sec. > > When running, it uses about 60% CPU ! > This could be a bit annoying sometimes, if there are other compute > intensive processes running, such as v

Predicate matching for entire to-many relationship

2009-09-24 Thread Bryan Henry
Hey list - I'm trying to determine what the best approach for writing a Core Data fetch predicate to match objects with a specific set for a to-many relationship is, so I'd appreciate some guidance. A portion of my Core Data model looks like so --> http://is.gd/3Dyp4 I am attempting to fet

Background application is visible when I try to display a transparent backgrounded image into my app

2009-09-24 Thread Symadept
Hi, I am trying to display an Image whose background is transparent as a buttoncell. Then the application background of my app or the desktop is visible and when I clicked on it, it focuses to the visible app. Why it is so happening. Code goes like this. Subclassed the NSButtonCell and tried to

Re: Exit screen saver programmatically?

2009-09-24 Thread John Horigan
If you send the unwanted events to ScreenSaverView parent of your view then it should terminate gracefully. [super theEvent]; -- john On Sep 24, 2009, at 1:14 AM, Gabriel Zachmann wrote: Post a mouse down event and the sceensaver engine will remove it for you. That is a good idea -- exc

Core Data: relationship 'too large' when saving

2009-09-24 Thread Frederick Bartram
My bad. I apologize for wasting bandwidth. Problem had nothing to do with relation set size. *- * Stop spam before it gets to your mailbox! Support blocklists. * I use http://www.spamcop.net/. * my PGP key id: 0x63fa758 keyserver: http://keyserver1.

UIPickerView: How do I LOOP data, as is done in UIDatePicker {looping Jan thru Dec} vs a mere list?

2009-09-24 Thread Frederick C. Lee
Greetings: I have a customized UIPickerView containing a list of names. Let’s say I have an array of ten (10) names = {“Alfred”... “Zena”}. The normal way of showing this list is a singular, static list of an array from beginning to end. I would have to return to the beginning vs automatically c

Re: Background application is visible when I try to display a transparent backgrounded image into my app

2009-09-24 Thread Ken Ferry
On Wed, Sep 23, 2009 at 11:21 PM, Symadept wrote: > Hi, > I am trying to display an Image whose background is transparent as a > buttoncell. Then the application background of my app or the desktop is > visible and when I clicked on it, it focuses to the visible app. > > Why it is so happening. >

Possible to set control's action in IB, set target programmatically?

2009-09-24 Thread Sidney San Martín
I want to to set some controls' targets programmatically, but don't need to change their actions. Interface Builder shows a binding for "Target", which is perfect, but I can't find a way to set a control's action in IB *without* hooking up a target. What's the right way to do this? I could create

Re: Core Data: relationship 'too large' when saving

2009-09-24 Thread Frederick Bartram
In my embarrassment at my haste to post to the list I have compounded the error. :( For archive posterity, the 'bug' was a case of mistaken identity. As I have since learned, the 'too large' error notification was triggered by a value-violation in a bounded, 'Number'-attribute that happened

Re: Possible to set control's action in IB, set target programmatically?

2009-09-24 Thread Sidney San Martín
I just found and looked at the BoundButton sample code, and see that I missed the big, obvious "Selector Name" field in the inspector's target binding section. I feel special. All's working now. On Thu, Sep 24, 2009 at 5:11 PM, Sidney San Martín wrote: > I want to to set some controls' targets pr

Re: Possible to set control's action in IB, set target programmatically?

2009-09-24 Thread Sidney San Martín
All right, so my original question still stands after all (and, I'm sorry, I should've done more poking around before posting here). target/action binding behaves differently from a connection: I can't implement validateMenuItem: (it's never called) and I don't see a way to send the control itself

Re: Drawing text chunks (e.g. paras) in a text view with alternating background colours

2009-09-24 Thread Keith Blount
Hi Ross, Many thanks for the reply. The reason I have to use a larger rect than just what gets passed in is that I had so many drawing problems and artefacts if I didn't expand it to the whole visible rect, for some reason. > 4. Cache some of this information instead of recalculating > it. For

Re: UIPickerView: How do I LOOP data, as is done in UIDatePicker {looping Jan thru Dec} vs a mere list?

2009-09-24 Thread Matthew Lindfield Seager
> > Question: How can I change this behavior to allow LOOPING to the beginning > of the scroll list? > Ric, I just did a quick search for "continuous UIPicker" and found a page discussing this... http://www.iphonedevsdk.com/forum/iphone-sdk-development/4479-uipickerview-circular.html Most commo

Subview drawn with reverted order

2009-09-24 Thread gMail.com
Hi, In IB I have put some subview (NSImageView) within a NSView. Now, in IB, I can clearly see that the subview A is over the subview B. Instead when I build and run the application, the subview B is over the subview A. Too bad! It seems that the Front-Back drawing order of the subviews has been r

Re: CoreData Mysterious Conditional Data Loss

2009-09-24 Thread Ken Ferry
On Thu, Sep 24, 2009 at 6:59 AM, Milen Dzhumerov wrote: > > On 24 Sep 2009, at 14:20, I. Savant wrote: > > We're probably going to need a bit more information than this. You >> say the icons are "gone". I assume your entity instances are still >> there and all their other properties are present

Global Hotkeys - Trouble with sizeof EventHotKeyRef

2009-09-24 Thread Tobias Zimmerman
Hi all. I have a menu-bar background app that relies on global hotkeys. I have been using Carbon¹s RegisterEventHotKey to register callbacks for my hotkeys in Leopard. Is this still the preferred/only method for global hotkeys in Snow Leopard? Presuming it is, here is my problem, which relates

Re: Subview drawn with reverted order

2009-09-24 Thread Jens Alfke
On Sep 24, 2009, at 4:28 PM, gMail.com wrote: It seems that the Front-Back drawing order of the subviews has been reverted. How to fix this problem? Overlapping sibling views aren't really supported in AppKit. If you want to do this kind of thing, you're better off using CoreAnimation lay

Re: Subview drawn with reverted order

2009-09-24 Thread Graham Cox
On 25/09/2009, at 9:28 AM, gMail.com wrote: It seems that the Front-Back drawing order of the subviews has been reverted. How to fix this problem? Make sure view A is an actual subview of view B, not just sitting at the same level. Views at the same level can't overlap. --Graham __

Re: Subview drawn with reverted order

2009-09-24 Thread Ken Ferry
On Thu, Sep 24, 2009 at 5:36 PM, Jens Alfke wrote: > > On Sep 24, 2009, at 4:28 PM, gMail.com wrote: > > It seems that the Front-Back drawing order of the subviews has been >> reverted. How to fix this problem? >> > > Overlapping sibling views aren't really supported in AppKit. If you want to >

Re: Core Data: relationship 'too large' when saving

2009-09-24 Thread Fritz Anderson
On 24 Sep 2009, at 3:24 PM, Frederick Bartram wrote: My bad. I apologize for wasting bandwidth. Problem had nothing to do with relation set size. It won't have been a waste of bandwidth if you post the meaning of the error message, and the solution, for the benefit of the archives.

Remove NSTableView Default Selection

2009-09-24 Thread John McIntosh
Hello all. I am working on an application that contains a NSTableView. The table view has a single column which display several options. Based on the row that the user selects, something is displayed. When the application is first launched, the first row in the table is selected by default (but not

Re: Subview drawn with reverted order

2009-09-24 Thread I. Savant
On Sep 24, 2009, at 8:36 PM, Jens Alfke wrote: Overlapping sibling views aren't really supported in AppKit. No longer true as of Leopard. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Correct way to tell if a path is to a .bundle?

2009-09-24 Thread Rick Mann
I'm scanning a directory for plugins for my app. Given a path, what's the right way to tell if it's a path to a bundle? TIA -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

NSTableView Drag & Drop as a string

2009-09-24 Thread Todd Heberlein
I have an NSTableView and I have Drag & Drop working between table views for my application where I encode the object to an NSData and write it to the NSPasteboard. But now I want to create a string representation of the object, add it to the pasteboard as well, and then when the object is

NSTableView able to display different background images

2009-09-24 Thread Symadept
Hi, I am trying to make my NSTableView display various images for various states of the cells. Say, Default, Highlighted and MouseOver. Can anybody help me how to achieve this. I know MouseOver will be pretty difficult. Immediately I want to hit the two things first, Default & Highlighted and Di

Re: Correct way to tell if a path is to a .bundle?

2009-09-24 Thread Jens Alfke
On Sep 24, 2009, at 6:41 PM, Rick Mann wrote: I'm scanning a directory for plugins for my app. Given a path, what's the right way to tell if it's a path to a bundle? -[NSWorkspace isFilePackageAtPath:]. —Jens___ Cocoa-dev mailing list (Cocoa-dev@

Re: Remove NSTableView Default Selection

2009-09-24 Thread Jens Alfke
On Sep 24, 2009, at 5:07 PM, John McIntosh wrote: I assumed that I could send the same deselectAll message in either an awakeFromNib function or applicationDidFinishLaunching. However, neither of these clears the selection. Make sure you've checked the table's "Empty" checkbox (allow empty

How to create a control just as RGB Sphere and Alpha bar

2009-09-24 Thread Symadept
Hi, Can any help me how to create a view which contains Spectrum Bar (Just as RGB Sphere in NSColorPanel) and an Alpha bar? Thanks in advance Regards Mustafa ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Correct way to tell if a path is to a .bundle?

2009-09-24 Thread Rick Mann
On Sep 24, 2009, at 20:09:02, Jens Alfke wrote: On Sep 24, 2009, at 6:41 PM, Rick Mann wrote: I'm scanning a directory for plugins for my app. Given a path, what's the right way to tell if it's a path to a bundle? -[NSWorkspace isFilePackageAtPath:]. Thanks Jens. If I create a custom ex

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-24 Thread Graham Cox
On 25/09/2009, at 1:14 PM, Symadept wrote: Can any help me how to create a view which contains Spectrum Bar (Just as RGB Sphere in NSColorPanel) and an Alpha bar? NSImageView? --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

re: Core Data: relationship 'too large' when saving

2009-09-24 Thread Ben Trumbull
I am encountering an error that I have not seen before. While saving in a NSManagedObjectContext I am encountering an error that reports a to-many relationship as 'too large'. This relationship has ~10,000 members but each member is relatively simple consisting of a few short strings and numbers.

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-24 Thread Symadept
Hi Graham, Yes. But do you have any other ways to handle this. I want something like this I could be able to pick the color from the spectrum band and could change the Alpha (This I can manage to some extent, Immediately I need to handle the picking colour from the spectrum.) Regards Mustafa O

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-24 Thread Graham Cox
tsk, tsk - lazy, lazy. http://mattgemmell.com/2008/12/08/what-have-you-tried http://catb.org/~esr/faqs/smart-questions.html C'mon, get real. No-one's going to write your code for you. If you can't find a free class somewhere, subclass NSView yourself. A location <--> RGB mapping is pretty