Causing CFLog error messages

2008-03-10 Thread Kevin Dixon
Hi, I'm new to Cocoa development...I've started an app that's going to be a simple Audio Unit host. Anyway, when I start up my app, in the Run Log I these errors 2008-03-10 02:30:08.571 StretchFix[2232] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x3103, name =

Checking Continuously Updates Value in NSTextView binding cases Core Data failure

2008-03-10 Thread Mike R. Manzano
Here's an odd one: I have an NSTextView bound to an attribute of a Core Data entity of type binary. Works fine. However, if I go into IB and check Continuously Updates Value on the NSTextView's bindings settings, subsequent runs of the program tell me that it Cannot create NSData from

Re: Raw pixel data - jpeg

2008-03-10 Thread Jean-Daniel Dupas
Le 10 mars 08 à 09:18, Trygve Inda a écrit : I have raw pixel data in a block of memory of the form ARGB. I need to convert this to a jpg and write it to disk. I can obviously provide the width and height which match the amount of pixel data. I also need to go the other way... Reading a jpg

Using Core Data with OCUnit

2008-03-10 Thread William Hunt
Hey all, I'm having a bit of trouble getting my Core Data NSManagedObjectModel to load from within my unit tests. The code I'm using to load the model (and context) is in my application code, not in my unit test; but I do call it from my test class's setUp() method. The strange

Problem in Mouse over

2008-03-10 Thread ADIL SALEEM
Hi, What i am trying to do is that if mouse pointer is placed over a certain button in the GUI, then the text in a text field should be changed. I have subclassed NSButton and assigned this custom class to my button. From this class i have been able to receive mouse events and it works fine. But

[newbie] NSTableView - First NSColumn should not be affected by horizontal scrollbar

2008-03-10 Thread Tobias R.
Hi, I have a csv-file as datasource for an NSTableView. This part of my project works. And now my Question: Is there a way to make the first NSColumn of my NSTableView ... a) always visible and b) not being affected by the horizontal scrollbar, but only the vertical scrollbar? # | Column 1 |

[iPhone] UIImage drawInRect not scaling image

2008-03-10 Thread Stuart A. Malone
(Please correct me if I'm on the wrong list. Cocoa-dev seems to be the list suggested at the end of the iPhone developer videos, and I can't find any other.) I've begun working with the iPhone SDK, and quickly ran into what looks like a bug in UIImage drawInRect: and

picture proportions

2008-03-10 Thread Torsten Curdt
In IB2 there are 3 options to influence the proportions of an image o To Fit o Proportinal o None I would like to have something like o Zoom to Fit (zoom into the image so the minimal width/height fits) o Fit Proportionally to Max (maximal width/height fits) Any suggestion how to

Re: [iPhone] UIImage drawInRect not scaling image

2008-03-10 Thread Jamie Phelps
No iPhone discussion in public lists because it is under NDA. This has been flogged to death. JP Sent from my iPhone On Mar 10, 2008, at 7:23 AM, Stuart A. Malone [EMAIL PROTECTED] wrote: (Please correct me if I'm on the wrong list. Cocoa-dev seems to be the list suggested at the end

Re: NSURLDownload and userInfo

2008-03-10 Thread Clint Shryock
Do you have two instances of NSURLDownload? if they are declared in the .h file you could test for equality in the downloadDidFinish: delegate method. - (void)downloadDidBegin:(NSURLDownload *)download { if(download == myNSURLDownloadA) { // something for a } if(download ==

Re: [newbie] NSTableView - First NSColumn should not be affected by horizontal scrollbar

2008-03-10 Thread Stephane Sudre
On 10 mars 08, at 12:54, Tobias R. wrote: Hi, I have a csv-file as datasource for an NSTableView. This part of my project works. And now my Question: Is there a way to make the first NSColumn of my NSTableView ... a) always visible and b) not being affected by the horizontal scrollbar, but

Google Map embedded in an iPhone application

2008-03-10 Thread Christophe Promé
Hi all, I know it is not the right list to post question about iPhone dev, but because there are no dedicated list for it. I would like to know if it is possible to include a Map from Google Map into a custom iPhone application dev in Cocoa ? I would like to be able to print a map, offer the

Re: Google Map embedded in an iPhone application

2008-03-10 Thread I. Savant
I know it is not the right list to post question about iPhone dev Then don't post your question here. The rules really are that simple (and quite explicit). Behave. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

results in attached view

2008-03-10 Thread Torsten Curdt
I got a document based app. In the document window I can do a search and would then like to display a the results in a list. But this list should pop up similar to the quicksilver results. Attached to the bottom of the window. I've already been digging through the quicksilver source code -

NSTokenfield keyDown intercept and selects all tokens on startup

2008-03-10 Thread Bastian Hundt
Hi, first of all: I'am a newby on cocoa and mac development. I'am coming from the windows C# and .NET world so please be patient with me :) This is the situation: I have a NSTokenField which will be filled with some data and than be displayed (on a HUD Window). Now I have two problems.

Re: How to get the name of a method at runtime?

2008-03-10 Thread John Stiles
My experience with dladdr has been that it returns junk at least half of the time. IIRC, Tiger was worse than Leopard, but neither is as accurate as NSTask'ing out to atos (which basically works perfectly, albeit slow as dirt). I've got an open radar on it. stephen joseph butler wrote: On

Re: results in attached view

2008-03-10 Thread Mike R. Manzano
How about creating a child window with an NSTableView within it? See Managing Attached Windows in NSWindow's reference docs. Mike On Mar 10, 2008, at 7:12 AM, Torsten Curdt wrote: I got a document based app. In the document window I can do a search and would then like to display a the

Re: No track index in iTunes SB?

2008-03-10 Thread slasktrattenator
Right, thanks. That was a typo in Mail. Still doesn't do the trick though. However, I found it does if I do a get on the [currentPlaylist tracks] and [iTunes currentTrack]. But this seems to cause a memory leak, so I'm not sure it's the right way to go. On Mon, Mar 10, 2008 at 3:49 PM,

FW: NSTextView changes font

2008-03-10 Thread Mark Teagarden
Subject: Re: NSTextView changes font Gah, that sucks. Could you reply to the list and say this didn't do it? I already deleted the original message... :( Mark Teagarden wrote: Yeah, I saw that too. I tried it - no joy. I'll keep studying. On 3/10/08 10:32 AM, John Stiles [EMAIL

fileExistsAtPath with * to indicate random

2008-03-10 Thread Mr. Gecko
Hello, I'm new to cocoa so any help will be appreciated. I'm needing my application to find out if ImageMagick is installed. It is usually installed in the root directory(/) and it has the name of ImageMagick-6.3.8. I want it to detect it even if the version is 6.3.9. That way if there

Re: results in attached view

2008-03-10 Thread Torsten Curdt
Hah! Thanks for the pointer! So I just create another window in my nib and then add that as a child I assume. Quicksilver on the other hand just has views inside the nib. How would I display such a view? What's the difference? cheers -- Torsten On 10.03.2008, at 16:37, Mike R. Manzano

Re: No track index in iTunes SB?

2008-03-10 Thread has
slasktrattenator wrote: Anyone know how to get the index of the current iTunes track using Scripting Bridge? With Applescript, it's as simple as tell iTunes to return index of current track, but iTunes SB has no such property (well, there is one, but it only refers to the index of the current

Re: fileExistsAtPath with * to indicate random

2008-03-10 Thread John Stiles
You could use -directoryContentsAtPath: and check the array yourself for matches. Mr. Gecko wrote: Hello, I'm new to cocoa so any help will be appreciated. I'm needing my application to find out if ImageMagick is installed. It is usually installed in the root directory(/) and it has the

on launched with cocoa

2008-03-10 Thread Mr. Gecko
Hello, I have done an application with applescript studio and I'm trying to make it a cocoa application I had an on launched command where it did some things and I can't seem to find a way to do an on launched with cocoa I know there is a way. I already tried - (void)awakeFromNib but I

Re: on launched with cocoa

2008-03-10 Thread Stephane Sudre
On Mar 10, 2008, at 18:28, Mr. Gecko wrote: Hello, I have done an application with applescript studio and I'm trying to make it a cocoa application I had an on launched command where it did some things and I can't seem to find a way to do an on launched with cocoa I know there is a way. I

Re: on launched with cocoa

2008-03-10 Thread Mr. Gecko
Well I have a global that is set in a header file. In my awakeFromNib I have it set the globals to the path of an command line tool in the applications resource and when I run the command line tool with a function not in the same .m file I get Segmentation fault EXC_BAD_ACCESS (SIGSEGV)

Re: Glyph Generator hiding glyphs - _NSBlockNumberForIndex() errors

2008-03-10 Thread Aki Inoue
Keith, I was consulted about the sample from DTS and didn't find any obvious problem with it. It would be great if you could provide further detail (for example, bt of the exception raise). Thanks, Aki On 2008/03/08, at 10:41, Keith Blount wrote: Just to add a little info to my

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Dave Hersey
Just a guess, but is the window set to Release when closed in IB? You probably want to orderOut: it, not close it. Then makeKeyAndOrderFront: will do what you want. makeKeyAndOrderFront does make the window visible if it's not, but your window has probably been released from the close so

Re: fileExistsAtPath with * to indicate random

2008-03-10 Thread John Stiles
In general this is excellent advice, but I believe ImageMagick is not a Mac program but an X11 thing. Brian Stern wrote: On Mar 10, 2008, at 12:10 PM, Mr. Gecko wrote: I'm needing my application to find out if ImageMagick is installed. You should look at Launch Services. This Carbon API

Re: No track index in iTunes SB?

2008-03-10 Thread Christopher Nebel
On Mar 10, 2008, at 4:56 AM, [EMAIL PROTECTED] wrote: Anyone know how to get the index of the current iTunes track using Scripting Bridge? With Applescript, it's as simple as tell iTunes to return index of current track, but iTunes SB has no such property (well, there is one, but it only

Re: fileExistsAtPath with * to indicate random

2008-03-10 Thread glenn andreas
On Mar 10, 2008, at 2:03 PM, Jeff LaMarche wrote: On Mar 10, 2008, at 2:54 PM, John Stiles wrote: In general this is excellent advice, but I believe ImageMagick is not a Mac program but an X11 thing. ImageMagick has some X11 components, but can be compiled as a set of unix command line

Re: No track index in iTunes SB?

2008-03-10 Thread slasktrattenator
Thank you! On Mon, Mar 10, 2008 at 8:04 PM, Christopher Nebel [EMAIL PROTECTED] wrote: On Mar 10, 2008, at 4:56 AM, [EMAIL PROTECTED] wrote: Anyone know how to get the index of the current iTunes track using Scripting Bridge? With Applescript, it's as simple as tell iTunes to return

Re: CIImage (TIFFRepresentation) memory leak

2008-03-10 Thread slasktrattenator
I narrowed this down by removing the filters, and the leak is still there. And what a leak! Everytime I draw the view the memory usage increases with the size of the drawn image. Yet this exact same code is used in the Core Image Programming Guide. So I figure it's a bug in Core Image. But how can

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Nathaniel Gottlieb-Graham
Yup, The windows were released when closed, and I was using -close rather than -orderOut. Thanks guys! On Mar 10, 2008, at 2:31 PM, Matt Mashyna wrote: On Mar 10, 2008, at 2:12 PM, Nathaniel Gottlieb-Graham wrote: This is going to sound really stupid, but how do you show an NSWindow?

Re: CIImage (TIFFRepresentation) memory leak

2008-03-10 Thread Gary L. Wade
If all the code you're using is present, it looks to me like you're not releasing the object pointed at by image; the object returned by imageWithData is not an auto-released object. I narrowed this down by removing the filters, and the leak is still there. And what a leak! Everytime I draw the

Re: Glyph Generator hiding glyphs - _NSBlockNumberForIndex() errors

2008-03-10 Thread Keith Blount
Hi Aki, Many thanks for your reply, much appreciated. I completely stripped all my custom drawing code and everything to double-check it wasn't just some bad expectation of glyph-to-character mapping in my own code, but the problem persists. I've uploaded the sample, stripped down project

Re: No track index in iTunes SB?

2008-03-10 Thread has
Christopher Nebel wrote: Anyone know how to get the index of the current iTunes track using Scripting Bridge? With Applescript, it's as simple as tell iTunes to return index of current track, but iTunes SB has no such property (well, there is one, but it only refers to the index of the

Re: MVC Design Question

2008-03-10 Thread Stuart Malin
Take a look at this work by Robbie Hanson: http://deusty.blogspot.com/2008/02/towards-open-source-xmpp-framework- for.html http://code.google.com/p/xmppframework/ I can't vouch for the style of its internal design, but there is a lot there to leverage. I'm building my own native Cocoa

Re: NSTask not completing

2008-03-10 Thread Gerd Knops
On Mar 6, 2008, at 2:35 PM, Charles Ross wrote: [..] If I enter the following command in the terminal, it returns about 20,000 records to the screen in about one second: sqlite3 Videos.sql 'select * from ZVIDEOS' The file has a fairly large number of records, almost 20,000. However,

NSTokenField bug in 10.5.2?

2008-03-10 Thread Tom Bunch
Hey developers, I've been grappling with a problem very similar to this month's earlier thread with the same subject line. The consensus there was that in 10.4 NSTokenField always trims off whitespace before the input it tokenized. In fact, my experience is the opposite. In OmniPlan

[Moderator] iPhone discussion here.

2008-03-10 Thread Scott Anguish
Originally, the posted rule here was no discussion of the iPhone SDK. While a dedicated discussion area is being erected, the discussion will be allowed here, with the following restrictions: - no profanity (as usual) - no speculation on what may or may not be added/removed

Re: fileExistsAtPath with * to indicate random

2008-03-10 Thread Keith Duncan
I tried BOOL ImageMagick = [[NSFileManager defaultManager] fileExistsAtPath:@/ImageMagick*/ isDirectory:YES]; You're calling that wrong, the second parameter expects a pointer to a BOOL, not an actual BOOL. The correct syntax is: BOOL directory; BOOL exists = [[NSFileManager

Re: Small variant of NSSearchField?

2008-03-10 Thread Jonathan Hess
Hey John - IB also typically changes the cell's font, and the control's frame when you use the pop up in the control size inspector. Hope that helps - Jon Hess On Mar 10, 2008, at 3:27 PM, John Stiles wrote: Interface Builder can easily make a small variant of NSSearchField— it's right

Re: Small variant of NSSearchField?

2008-03-10 Thread John Stiles
I've done all of these things, and so far no dice. The small control clearly has a different overall look—for instance, the magnifying glass icon has a smaller variant which I do not see. Also, when I set the smaller frame, it's just using the big-size control and cutting off its bottom edge,

[Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread Scott Anguish
Apparently there has been some miscommunication somewhere. While I was told to allow discussion here, I've now been told that discussion should not be allowed here. So we're back to the 'no iPhone discussion is allowed' state of things. Sorry for the confusion. Scott Anguish

[iPhone] xml parsing

2008-03-10 Thread Simon Fell
The iPhone docs point you in the direction of libXML2 for parsing XML, yet the headers for NSXML are included in the SDK headers, and i was able to build and run fine using NSXMLDoc/element/node. (in fact i just dropped my existing NSXML based code into a iPhone project and it worked fine,

Re: Small variant of NSSearchField?

2008-03-10 Thread Tom Bunch
It does seem to be order dependent. This works (though it does drop the baseline a pixel) [[searchField cell] setControlSize:NSSmallControlSize]; [searchField setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]]; NSRect searchFrame =

Re: Small variant of NSSearchField?

2008-03-10 Thread John Stiles
I'll try it again with these steps. Thanks for the help. Tom Bunch wrote: It does seem to be order dependent. This works (though it does drop the baseline a pixel) [[searchField cell] setControlSize:NSSmallControlSize]; [searchField setFont:[NSFont systemFontOfSize:[NSFont

Re: Small variant of NSSearchField?

2008-03-10 Thread John Stiles
OK, I figured it out. My control's frame was too tall! If you set the search field's frame to be more than 19 pixels tall, it creates a large-sized variant even if you explicitly asked for the small version. I was using 21 pixels, which is smaller than the regular size of 22 pixels—so it was

Re: Expected Behavior? NSWorkspace and LSUIPresentationMode

2008-03-10 Thread Peter Ammon
On Mar 10, 2008, at 3:52 PM, Robert Kukuchka wrote: Hi, I spent a few days debugging why an application wasn't sending NSWorkspaceDidTerminateApplicationNotification to the sharedWorkspace. Turns out it was because LSUIPresentationMode was set to 1. Is this expected behavior? If not

Re: Small variant of NSSearchField?

2008-03-10 Thread John Stiles
BTW, this is now filed as rdar://5791056 [NSSearchFieldCell] Does not properly honor calls to -setControlSize: Thanks again for everyone's help debugging this issue! John Stiles wrote: OK, I figured it out. My control's frame was too tall! If you set the search field's frame to be

Re: [Moderator] iPhone discussion here.

2008-03-10 Thread Sean McBride
On 3/10/08 6:11 PM, Scott Anguish said: Questions and comments should be sent to the [EMAIL PROTECTED] as usual Small typo: plural lists: [EMAIL PROTECTED] -- Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Mike Abdullah
To me this sounds like an exception is occurring during code called when clicking the close button. Anything in the console? Mike. On 10 Mar 2008, at 21:40, Nathaniel Gottlieb-Graham wrote: Okay, now I have another problem. When the window in question is closed programmatically using

Button on a button

2008-03-10 Thread Niklas Saers
Hi, I'm fairly new to Cocoa so I'm sorry if this is a trivial question. I would like to create a little button in a button: like in Dashboard where you get a little i icon in a circle that can flip the widget, I would like to put a little i in a circle on the right-hand side of my button

Re: No track index in iTunes SB?

2008-03-10 Thread Adam P Jenkins
On Mar 10, 2008, at 12:14 PM, has wrote: slasktrattenator wrote: Anyone know how to get the index of the current iTunes track using Scripting Bridge? With Applescript, it's as simple as tell iTunes to return index of current track, but iTunes SB has no such property (well, there is one, but

Service without calling app to front?

2008-03-10 Thread Keith Blount
Hi, I offer a couple of clippings services via the application services menu for my app in the usual manner. So when the user is looking at text in another application, he or she can select some of it, go to the Services menu and have the text automatically pasted in my app. All of which

Re: Button on a button

2008-03-10 Thread Jean-Daniel Dupas
NSButton is a view. Every view accept subviews. So you can probably adding an other button in an existing button. I don't know if Interface Builder support it, but if it does not, you can do it programmaticaly. Le 11 mars 08 à 00:23, Niklas Saers a écrit : Hi, I'm fairly new to Cocoa so

Re: Glyph Generator hiding glyphs - _NSBlockNumberForIndex() errors

2008-03-10 Thread Aki Inoue
OK, it appears I made a mistake with the original DTS sample 8-). NSLayoutManager requires each glyph segment to start with non-null glyphs whereas the sample was replacing all incoming glyphs in the hidden range to NSNullGlyph. Beginning the range with NSControlGlyph fixes the issue. Add

Re: results in attached view

2008-03-10 Thread Mike R. Manzano
On Mar 10, 2008, at 9:12 AM, Torsten Curdt wrote: Hah! Thanks for the pointer! No problemo. So I just create another window in my nib and then add that as a child I assume. Yep. Quicksilver on the other hand just has views inside the nib. How would I display such a view? What's the

Re: Using Core Data with OCUnit

2008-03-10 Thread William Hunt
On Mar 10, 2008, at 11:19 AM, Chris Hanson wrote: - (NSManagedObjectModel *)managedObjectModel { if (_managedObjectModel == nil) { NSString *modelPath = [[NSBundle mainBundle] pathForResource:@MyModel ofType:@mom]; NSURL *modelURL = [NSURL fileURLWithPath:modelPath

Re: fileExistsAtPath with * to indicate random

2008-03-10 Thread Adam P Jenkins
On Mar 10, 2008, at 3:03 PM, Jeff LaMarche wrote: On Mar 10, 2008, at 2:54 PM, John Stiles wrote: In general this is excellent advice, but I believe ImageMagick is not a Mac program but an X11 thing. ImageMagick has some X11 components, but can be compiled as a set of unix command line

NSBundle wierdness in OCUnit target:

2008-03-10 Thread William Hunt
Well, I think I've traced the weirdness I was previously having with the model down to the following... When I call: NSLog( @bundlePath: %@, [[NSBundle mainBundle] bundlePath] ); I get: 2008-03-10 16:41:18.565 otest[3819:80f] bundlePath: /Developer/Tools This is clearly not correct. (I

Missing Rule For xcdatamodel In Core Data App

2008-03-10 Thread Thaddeus Cooper
Hi All -- I've been through the archives looking for an answer to this problem but have been unable to garner an answer, so I am posting here in the hopes of getting this issue resolved. I created a new core data project today. I created an entity with three attributes and then build an

Re: [Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread I. Savant
While I was told to allow discussion here, I've now been told that discussion should not be allowed here. Oh, that's just MEAN! Somewhere in Cupertino, somebody's standing next to the big NDA switch in the iPhone room, giggling maniacally as they flip it on-off- on-off-... :-D --

Is IKImageView actually supposed to work?

2008-03-10 Thread Nathan Duran
I could have sworn I saw a working example of IKImageView at one of the traveling Leopard Technology Preview seminars a while back, but after spending an entire weekend attempting to accomplish some incredibly basic tasks with it, I'm beginning to wonder if the lack of sample code in

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Nathaniel Gottlieb-Graham
Um, never mind. The problem has disappeared! There was nothing in the console at all. I think I had mistyped something or used the wrong -orderOut: method. On Mar 10, 2008, at 7:09 PM, Mike Abdullah wrote: To me this sounds like an exception is occurring during code called when

Re: [iPhone] xml parsing

2008-03-10 Thread Julien Jalon
I'm pretty sure you read the SDK release notes ;-) If not, I think you should, that's always a good idea. -- Julien On Mon, Mar 10, 2008 at 11:49 PM, Simon Fell [EMAIL PROTECTED] wrote: The iPhone docs point you in the direction of libXML2 for parsing XML, yet the headers for NSXML are

Re: Using Core Data with OCUnit

2008-03-10 Thread Bill Garrison
I've been doing Core Data unit tests using a MOC backed by an in- memory store. It gets the model using [NSManagedObjectModel mergedModelFromBundles:nil]. I didn't have to include the app's model file to the unit test target or anything. It seems to load it it fine directly from the app

Re: [iPhone] xml parsing

2008-03-10 Thread Jacob Bandes-Storch
On a similar-ish note, I'm having trouble using libxml. I'm using a slightly modified version of the appropriate sample code. I need to make sure that the library is in my project. Since I couldn't find the library in a convenient place (where are you supposed to get those anyway?), I just

Re: [Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread Rob Keniger
On 11/03/2008, at 9:55 AM, I. Savant wrote: Somewhere in Cupertino, somebody's standing next to the big NDA switch in the iPhone room, giggling maniacally as they flip it on- off-on-off-... :-D Or, more specifically, *slide* it on-off-on-off. Sorry. -- Rob Keniger

Re: No track index in iTunes SB?

2008-03-10 Thread has
Adam P Jenkins wrote: Anyone know how to get the index of the current iTunes track using Scripting Bridge? You'll have to muck about with raw AE codes if you want to do it with Scripting Bridge; see past discussions of SB's design flaws for more info. Actually it's doable in scripting

Re: [iPhone] xml parsing

2008-03-10 Thread Julien Jalon
I can't comment on the iPhone part as this is NDA (and should not be discussed here) but, on Mac OS X, I'd add /usr/include/libxml2 to the header search path in project (or target) build settings. Also, I'd add the libxml2.dylib to my project using Add existing framework or add -lxml2 to the

Re: [Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread has
Scott Anguish wrote: So we're back to the 'no iPhone discussion is allowed' state of things. #1 - The first rule of iPhone SDK is, you do not talk about iPhone SDK. #2 - The second rule of iPhone SDK is, you DO NOT talk about iPhone SDK. ... ___

Networked sync service to non .mac server?

2008-03-10 Thread Brian Krisler
Hello, I am currently working on an application that requires data collection for scientific study. I have a Core Data entity that I would like to have the contents sent to a central server at scheduled intervals. Is this something that I can leverage the sync services for, or should I use

Re: on launched with cocoa

2008-03-10 Thread Nir Soffer
On Mar 10, 2008, at 20:14, Mr. Gecko wrote: Well I have a global that is set in a header file. In my awakeFromNib I have it set the globals to the path of an command line tool in the applications resource Don't do this. To find an executable in your bundle, use NSBundle. For example:

Re: [Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread Dave Hersey
That sounds surprisingly plausible. I imagine a big speech bubble above the Apple campus that says, Well, I'm glad we got all our ducks in a row for that iPhone SDK release! Meanwhile, cute little baby ducks are running at everyone's feet, riding the elevators up and down, quacking during

Re: Causing CFLog error messages

2008-03-10 Thread Ben Lachman
On Mar 10, 2008, at 2:49 AM, Ron Fleckner wrote: On 10/03/2008, at 5:34 PM, Kevin Dixon wrote: 2008-03-10 02:30:08.571 StretchFix[2232] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x3103, name = 'com.YSPf.StretchFix.ServiceProvider' See

Re: Networked sync service to non .mac server?

2008-03-10 Thread Nick Zitzmann
On Mar 10, 2008, at 7:00 PM, Brian Krisler wrote: I am currently working on an application that requires data collection for scientific study. I have a Core Data entity that I would like to have the contents sent to a central server at scheduled intervals. Is this something that I can

Re: NSBundle wierdness in OCUnit target:

2008-03-10 Thread Chris Hanson
On Mar 10, 2008, at 4:44 PM, William Hunt wrote: Well, I think I've traced the weirdness I was previously having with the model down to the following... Please don't start a new thread when the existing one will do just fine. Creating a new thread removes context from the conversation

Re: NSURLDownload and userInfo

2008-03-10 Thread Ben Lachman
Alternatively, if you're managing more than two requests at a time you can declare a mutable array of connections and then build a dictionary for each connection that includes any info you want you delegate to have available. I have a method that build the connection dict for a connection

Re: NSURLDownload and userInfo

2008-03-10 Thread Jens Alfke
On 10 Mar '08, at 6:35 PM, Ben Lachman wrote: Alternatively, if you're managing more than two requests at a time you can declare a mutable array of connections and then build a dictionary for each connection that includes any info you want you delegate to have available. I think it's

Re: NSBundle wierdness in OCUnit target:

2008-03-10 Thread William Hunt
On Mar 10, 2008, at 6:29 PM, Chris Hanson wrote: On Mar 10, 2008, at 4:44 PM, William Hunt wrote: Well, I think I've traced the weirdness I was previously having with the model down to the following... Please don't start a new thread when the existing one will do just fine. Creating a

Re: Clicking NSButton causes parent view to draw in transparent background

2008-03-10 Thread Justin Williams
That solved it. Thanks, Ken - j On Mon, Mar 10, 2008 at 8:38 PM, Ken Ferry [EMAIL PROTECTED] wrote: // Want to draw it in the center of the view. NSPoint startPoint; startPoint.x = rect.origin.x + rect.size.width / 2 - size.width / 2; startPoint.y = rect.origin.y +

How to run progress bar in a separate thread

2008-03-10 Thread Nick Rogers
Hi, My app has to show a progress bar on the main window. I have an outlet of type NSProgressIndicator. A start button triggers the method in which I'm incrementing the progress bar. But the buttons stop working once the method gets called. How can I run this progress bar in a separate

Re: How to run progress bar in a separate thread

2008-03-10 Thread Jeff LaMarche
On Mar 10, 2008, at 10:08 PM, Nick Rogers wrote: NSThread has one method: + (void)detachNewThreadSelector:(SEL)aSelector toTarget:(id)aTarget withObject:(id)anArgument But its hard to understand as to how to implement it, since its a class method. Don't

Re: NSURLDownload and userInfo

2008-03-10 Thread Ben Lachman
On Mar 10, 2008, at 9:52 PM, Jens Alfke wrote: On 10 Mar '08, at 6:35 PM, Ben Lachman wrote: Alternatively, if you're managing more than two requests at a time you can declare a mutable array of connections and then build a dictionary for each connection that includes any info you want you

Re: No track index in iTunes SB?

2008-03-10 Thread Adam P Jenkins
On Mar 10, 2008, at 8:47 PM, has wrote: Adam P Jenkins wrote: Anyone know how to get the index of the current iTunes track using Scripting Bridge? You'll have to muck about with raw AE codes if you want to do it with Scripting Bridge; see past discussions of SB's design flaws for more

Re: How to run progress bar in a separate thread

2008-03-10 Thread Jiva DeVoe
Make sure if you're doing this that you're not actually updating the GUI code from your other thread because much of cocoa is not thread safe. Instead, use the performSelectorOnMainThread... Method to do your update to the progress bar in the main thread. -- Jiva DeVoe

Re: NSURLDownload and userInfo

2008-03-10 Thread Adam Leonard
Or, yet another solution: Just subclass NSURLConnection (say MyUserInfoURLConnection), add a userInfo ivar, drop in some accessors, and you are good to go. :) [userInfoConnection userInfo]; Adam Leonard On Mar 10, 2008, at 6:52 PM, Jens Alfke wrote: On 10 Mar '08, at 6:35 PM, Ben Lachman

Re: Checking Continuously Updates Value in NSTextView binding cases Core Data failure

2008-03-10 Thread Mike R. Manzano
I need the text view to handle multiple fonts and images. It would just be a crying shame if I had to go write a bunch more code to do something that bindings already purports to do. In lieu of having the text view continuously update, is there a way I can manually force the binding to

Manipulating Sharing Services

2008-03-10 Thread Jim Brown
Hi All, We are developing an app that does a security review of a Mac looking for obvious vulnerabilities and settings that don't meet our published Best Practices. One of the steps is to get the current state of each of the 'services' listed in the sharing preferences (AFP, SMB, printer

Re: [Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread Jacob Bandes-Storch
So are we or are we not getting a specialized (password-protected, probably) discussion area for the iPhone SDK? On Mar 10, 2008, at 6:30 PM, [EMAIL PROTECTED] wrote: That sounds surprisingly plausible. I imagine a big speech bubble above the Apple campus that says, Well, I'm glad we got

Re: [Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread Philip Ershler
Sorry, can't talk about that here! ; ) On Mar 10, 2008, at 10:11 PM, Jacob Bandes-Storch wrote: So are we or are we not getting a specialized (password-protected, probably) discussion area for the iPhone SDK? On Mar 10, 2008, at 6:30 PM, [EMAIL PROTECTED] wrote: That sounds

Re: Manipulating Sharing Services

2008-03-10 Thread Jens Alfke
On 10 Mar '08, at 9:10 PM, Jim Brown wrote: In Tiger one can determine if AFP is running with 'ps -axc | grep AppleFileServer' and AFP can be turned off by simply running a shell command (sudo killall AppleFileServer). This doesn't really work in Leopard for either determining if AFP is

Re: Checking Continuously Updates Value in NSTextView binding cases Core Data failure

2008-03-10 Thread Mike R. Manzano
Okay, I think I've found the problem, but I'm not sure why it's a problem. I had two NSArrayControllers bound to the same NSManagedContext. I had one text view bound to the selection in the first controller, and another text view bound to the second array controller. I removed one of the

Re: MPTask equivalent?

2008-03-10 Thread Ken Thomases
On Mar 10, 2008, at 4:05 PM, Trygve Inda wrote: I would like to use NSThreads as they seem simpler and Apple's latest docs discourages MPTasks. The call I need an equivalent to is MPWaitOnQueue... This blocks a thread until a message is received OR it times out. Is there a way to get a

Re: NSBundle wierdness in OCUnit target:

2008-03-10 Thread Nir Soffer
On Mar 11, 2008, at 01:44, William Hunt wrote: Well, I think I've traced the weirdness I was previously having with the model down to the following... When I call: NSLog( @bundlePath: %@, [[NSBundle mainBundle] bundlePath] ); I get: 2008-03-10 16:41:18.565 otest[3819:80f] bundlePath: