Multi-window document app: How to only show the main window when opening

2008-05-14 Thread Markus Spoettl
Hello, I have an NSDocument based application with multiple NSWindowControllers that visualize different aspects of the document. One is the main view and this is the only one that should be visible by default. The question is how does one do that? When I create all window controllers

Combo Box Problem (when using data source)

2008-05-14 Thread Adil Saleem
Hi, If a combo box is using a Data Source, then how do i programatically get the number of items in that combo box ? If i use [self numberOfItemsInComboBox:myComboBox], it says *** -[NSComboBoxCell objectValueOfSelectedItem] should not be called when usesDataSource is set to YES My question

how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
Hi all: I have two questions, pls help me 1. When i implement printing with cocoa, an NSPrintOperation object is created to control the print operation (see the NSPrintOperation class description for details). NSPrintOperation * printOp = [NSPrintOperation printOperationWithView:viewToPrint

Re: openURL is not applied to POST-argument of local html file in leopard.

2008-05-14 Thread Doo-Hyun Jang
thank you! Jens. sorry, I can't found example of don't create a temporary file. but, I can found Re: Open safari and send post variables : http://www.cocoabuilder.com/archive/message/cocoa/2006/6/9/165322 it's using temporary file. ( it's not work in leopard, because of POST'argument is not

Pantomime working well.

2008-05-14 Thread vinitha
ok,Pantomime framework is working fine now,I've given wrong port,sory.Thanks to Ludovic Marcotte for helping me. thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Combo Box Problem (when using data source)

2008-05-14 Thread Ronny Reichmann
Hi Adil, when you set your combo-box to use a data-source-object, you have to provide this data source object. At the end your data-source should know exactly the number of items. Your are providing the data-source, so you should know the number of items. Am 14.05.2008 um 08:17 schrieb

Re: openURL is not applied to POST-argument of local html file in leopard.

2008-05-14 Thread Doo-Hyun Jang
I got the result of POST request and I stored in temporary file. and openURL( the temporary file ). 2008/5/14 Doo-Hyun Jang [EMAIL PROTECTED]: ... img src=/image/nateon_tui/0728_im_011_img.gif width=497 height=81 ... path is not full path. it's occur error like this, Can't not Found

Re: Fullscreen on secondary displays

2008-05-14 Thread Jean-Daniel Dupas
Yes, this function is available for 64bits app. Le 14 mai 08 à 05:30, Dennis Munsie a écrit : This code worked for me -- with one change: the NSRect from [screen frame] has the offset set to it's relative location to the main display. This is what was throwing me off the entire time :) By

Re: Create NSStrings from a mapped NSData object - safe?

2008-05-14 Thread Michael Vannorsdel
I was going to with sample code to show it, but I didn't see any documentation that said file locks and link counts were guaranteed. The Finder (or its underlying API) was smart enough to check link counts and gave notice the file was inuse. But rm just wiped it off the FS and left

object.selection inside predicate

2008-05-14 Thread Steven Hamilton
Hi folks, If I'm using a predicate in the attributes pane of IB for an entity, is it possible to reference the keypath in another object in that predicate? Not by following a relationship. e.g. entity is transactions. predicate; fromAccount == MLTreeController.selection.name kind of

Re: Core data model, bindings advice.

2008-05-14 Thread Steven Huey
Steven, On May 13, 2008, at 5:12 AM, Steven Hamilton wrote: How would I best handle translating the data from the entity model to the view model? I see two options; 1) Munge around with Valuetransformers. If toAccount = selected account then credit = amount, debit = blank, opposite if

NSRectFillListWithColors question

2008-05-14 Thread Davide Scheriani
hello guys! I was playing around with the Graphics drawing method and I wanted to use NSRectFillListWithColors. the 3 params it need are: NSRect, NSColor , NSInteger so,supposely the NSRect have to be an array, color as well and the int the length of arrays. My small problem is that it

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread douglas a. welton
On May 14, 2008, at 2:46 AM, debin lei wrote: 1. When i implement printing with cocoa, an NSPrintOperation object is created to control the print operation (see the NSPrintOperation class description for details). NSPrintOperation * printOp = [NSPrintOperation

Capture screenshot

2008-05-14 Thread john muchow
I've got a question related to capturing a screenshot of the login screen using Cocoa. Long story short, I've found a means to get the elusive screenshot that gets me 99% of the way there... My question for this group is if anyone is aware of a Cocoa API/library call to capture a screenshot. I am

Re: NSRectFillListWithColors question

2008-05-14 Thread Graham Cox
Umm, use a C-style array? On 14 May 2008, at 10:42 pm, Davide Scheriani wrote: My small problem is that it accept C-style arrays not NSArray. What can I do? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Capture screenshot

2008-05-14 Thread Uli Kusterer
Am 14.05.2008 um 14:48 schrieb john muchow: My question for this group is if anyone is aware of a Cocoa API/library call to capture a screenshot. Cocoa? No. But CoreXXX has several options: - You can ask CGDirectDisplay for the base pointer of a screen's bitmap - You can use Leopard's

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
Thank you for your infomation, i know the function keyPathsForValuesAffectingPreview, however, i did not know how to use it. I have looked the Reference. It said an accessory view modifies printing-related properties that are used by the print preview, you should implement this method to return

Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-14 Thread Apparao Mulpuri
HI, I have a Cocoa based multi monitor application,which will run on Mac OS X 10.3.9 onwards. It is working as expected in 10.3.9 and Tiger os versions. But, in Leopard 10.5.2, its giving following exception: ** Assertion failure in -[NSNextStepFrame lockFocus],

Launching Cocoa Application externally

2008-05-14 Thread Yann Disser
When I launch my Cocoa application from Finder instead of from within XCode, it reports a crash. All my other Projects seem to work well from outside XCode... I tried to debug my App by changing the main-function to int main(int argc, char *argv[]) { [[NSString stringWithString:@hier]

Re: Launching Cocoa Application externally

2008-05-14 Thread Stéphane
On May 14, 2008, at 3:48 PM, Yann Disser wrote: When I launch my Cocoa application from Finder instead of from within XCode, it reports a crash. All my other Projects seem to work well from outside XCode... I tried to debug my App by changing the main-function to int main(int argc, char

Re: Launching Cocoa Application externally

2008-05-14 Thread Jean-Daniel Dupas
You can read the crash log to see what goes wrong. (/Applications/ Utilities/Console.app) Le 14 mai 08 à 15:48, Yann Disser a écrit : When I launch my Cocoa application from Finder instead of from within XCode, it reports a crash. All my other Projects seem to work well from outside

Cocoa and Carbon

2008-05-14 Thread Gerriet M. Denkmann
I always thought that Cocoa is an Objective-C API, which is a more convenient counterpart to the more verbose or more cumbersome C API of Carbon, which often gives more detailed control though. E.g. NSString has stringWithContentsOfFile:usedEncoding:error:, but Carbon has a Text Encoding

Re: NSRectFillListWithColors question

2008-05-14 Thread Heinrich Giesen
On 14.05.2008, at 15:32, Davide Scheriani wrote: I was playing around with the Graphics drawing method and I wanted to use NSRectFillListWithColors. . My small problem is that it accept C-style arrays not NSArray. What can I do? Do exactly what the description of this function says;

Re: Create NSStrings from a mapped NSData object - safe?

2008-05-14 Thread Mike Fischer
Am 14.05.2008 um 15:32 schrieb Michael Vannorsdel [EMAIL PROTECTED]: I was going to with sample code to show it, but I didn't see any documentation that said file locks and link counts were guaranteed. See man unlink: [...] If that decrement reduces the link count of the file to zero, and

Bypassing Interface Builder

2008-05-14 Thread colo
I am reading my cocoa book and online tutorials atm. But one ting that totally irks me atm is using interface builder to create objects and instantiate them. I rather just make it in Xcode or Textmate and know what's going on behind the scenes. Might there be not a tutorial but more documented

Re: openURL is not applied to POST-argument of local html file in leopard.

2008-05-14 Thread Jens Alfke
On 13 May '08, at 11:52 PM, Doo-Hyun Jang wrote: sorry, I can't found example of don't create a temporary file. Send the POST from your application. Don't use Safari. Please use the NSURLConnection and NSURLRequest classes. Read the documentation for these classes.

Programmatically Set Image Capture Prefs

2008-05-14 Thread Matt Long
Does anyone know if there is a way to programatically set the Image Capture.app preference called When a camera is connected, open:. I want to set this to No Applicaiton using code. I would think that there is some plist file containing this preference, but I've yet to find such a thing.

Re: openURL is not applied to POST-argument of local html file in leopard.

2008-05-14 Thread Jens Alfke
On 14 May '08, at 12:56 AM, Doo-Hyun Jang wrote: I got the result of POST request and I stored in temporary file. and openURL( the temporary file ). 2008/5/14 Doo-Hyun Jang [EMAIL PROTECTED]: ... img src=/image/nateon_tui/0728_im_011_img.gif width=497 height=81 ... path is not full path.

Re: Launching Cocoa Application externally

2008-05-14 Thread Jens Alfke
On 14 May '08, at 6:48 AM, Yann Disser wrote: How can I debug my App from Finder (or Terminal) to see where it crashes? (printf(hallo\n) doesn't work either) From a shell, enter gdb MyApp.app, then run. I would suspect a dyld error, like a framework/library not found. The Finder /

Re: Cocoa and Carbon

2008-05-14 Thread Jens Alfke
On 14 May '08, at 7:21 AM, Gerriet M. Denkmann wrote: So: what is the real difference between a Carbon application and a Cocoa one? Why would one create a Carbon application? Carbon applications generally don't use Cocoa or Objective-C at all. They use the High-Level Toolbox for GUI code.

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
Does anyone have ideas about the question 2 ? 2. when we implement printing with cocoa, an NSPrintOperation object is created to control the print operation . NSPrintOperation * printOp = [NSPrintOperation printOperationWithView:viewToPrint printInfo:printInfo]; [printOp setShowsPrintPanel:YES];

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]

2008-05-14 Thread Jens Alfke
On 14 May '08, at 7:52 AM, Keith Duncan wrote: Currently I'm loading the iTunes XML library using -[NSDictionary initWithContentsOfFile:] but for my iTunes library, even a reasonably small one, the file weighs in at just over 4 MB. I ran into the same issue. The bottleneck isn't the file

Re: Create NSStrings from a mapped NSData object - safe?

2008-05-14 Thread Jean-Daniel Dupas
Le 14 mai 08 à 16:32, Mike Fischer a écrit : Am 14.05.2008 um 15:32 schrieb Michael Vannorsdel [EMAIL PROTECTED]: I was going to with sample code to show it, but I didn't see any documentation that said file locks and link counts were guaranteed. See man unlink: [...] If that decrement

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]

2008-05-14 Thread Matt Gough
On 14 May 2008, at 16:52, Keith Duncan wrote: The only problem however is that iTunes periodically replaces this file, if this were to happen whilst I have the original mapped, would my app crash? Essentially, whilst I have the file open, will it remain readable? Well, if iTunes is

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
I am reading my cocoa book and online tutorials atm. But one ting that totally irks me atm is using interface builder to create objects and instantiate them. Why? This is the way it's done in the Cocoa world unless you have a very good reason not to. You can either get used to it or you

Re: Launching Cocoa Application externally

2008-05-14 Thread Yann Disser
The App runs fine in gdb and even writes the output file. Still the same error (crash and no output written) when running it with open MyApp.app. Yann On 14. May 2008, at 16:47, Jens Alfke wrote: On 14 May '08, at 6:48 AM, Yann Disser wrote: How can I debug my App from Finder (or

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread Rimas
What are you trying to achieve? Get printed document without UI? 2. when we implement printing with cocoa, an NSPrintOperation object is created to control the print operation . NSPrintOperation * printOp = [NSPrintOperation printOperationWithView:viewToPrint printInfo:printInfo];

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]

2008-05-14 Thread Keith Duncan
I was able to speed this up by an order of magnitude, by using libxml2 to parse the file (using the SAX API) into my own custom data structures. That's definitely good to know. Thanks for the pointer. Keith ___ Cocoa-dev mailing list

Re: Launching Cocoa Application externally

2008-05-14 Thread Andy Lee
Is MyApp.app a Release build or a Debug build? --Andy On May 14, 2008, at 11:13 AM, Yann Disser wrote: The App runs fine in gdb and even writes the output file. Still the same error (crash and no output written) when running it with open MyApp.app. Yann On 14. May 2008, at 16:47,

Can I use NSString classes SYNCHRONOUSLY?

2008-05-14 Thread fclee
Greetings: I need to mimic the following synchronous Java routine: StreamConnection xmlstream = null; HttpConnection connection = null; .. xmlstream = (StreamConnection)Connector.open(SOAP_SERVER_URL + ;deviceside=false,Connector.READ_WRITE,true); .. // Send

Re: Bypassing Interface Builder

2008-05-14 Thread colo
Hmmm. The letting it create the files in the nib file sounds fine for me. But what about the linking and configuring? It's just all reflected in code correct? The dragging a pipe to one object to the other that just all shows up in the .m right? So that part can just be bypassed and done in xcode

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
On Wed, May 14, 2008 at 11:35 AM, colo [EMAIL PROTECTED] wrote: Hmmm. The letting it create the files in the nib file sounds fine for me. But what about the linking and configuring? It's just all reflected in code correct? The dragging a pipe to one object to the other that just all shows

Re: Bypassing Interface Builder

2008-05-14 Thread Andy Lee
On May 14, 2008, at 11:11 AM, I. Savant wrote: I rather just make it in Xcode or Textmate and know what's going on behind the scenes. Using IB and knowing what goes on behind the scenes are not mutually exclusive. I use IB and (because I thoroughly read the documentation) know what's going on

Re: Bypassing Interface Builder

2008-05-14 Thread colo
I absolutely appreciate your details and reasons that I should stick to the Cocoa way. And yes I do need to keep at the reading and testing. I guess it's just all of the Ruby and Rails and CSS that gets in my way of thinking. That and that when I crack open demo source like drawkit Skecth and

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
The issue could also be addressed from the other direction. How far behind the scenes do you want to go? Should one program only with structs and C functions because polymorphism and dynamic binding do things for you behind the scenes? I had started to say much the sam thing (only was

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
On Wed, May 14, 2008 at 11:53 AM, colo [EMAIL PROTECTED] wrote: I guess it's just all of the Ruby and Rails and CSS that gets in my way of thinking. Yes. ;-) Common apps that use tables and shelves like Mail or other todo apps are not on my target and frankly may never be, so the

Re: Can I use NSString classes SYNCHRONOUSLY?

2008-05-14 Thread Dave Dribin
On May 14, 2008, at 10:22 AM, [EMAIL PROTECTED] wrote: I'm reading up on NSStream; where delegation is used for Asynchronous process. However, I need Synchronous processing. NSInputStream isn't asynchronous + delegate for reading (are you confusing it with another class?), but it's still a

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
Hmmm. The letting it create the files in the nib file sounds fine for me. But what about the linking and configuring? It's just all reflected in code correct? The dragging a pipe to one object to the other that just all shows up in the .m right? So that part can just be bypassed and

Re: Bypassing Interface Builder

2008-05-14 Thread Gregory Weston
colo wrote: Hmmm. The letting it create the files in the nib file sounds fine for me. But what about the linking and configuring? It's just all reflected in code correct? The dragging a pipe to one object to the other that just all shows up in the .m right? No and no. Distinctly unlike C#

Re: Bypassing Interface Builder

2008-05-14 Thread glenn andreas
On May 14, 2008, at 10:58 AM, I. Savant wrote: The issue could also be addressed from the other direction. How far behind the scenes do you want to go? Should one program only with structs and C functions because polymorphism and dynamic binding do things for you behind the scenes?

Re: Bypassing Interface Builder

2008-05-14 Thread Wayne Packard
Are you asking whether IB just generates code in a .m file to draw UI (in the same way something like NetBeans does for a Swing UI)? If so, the answer is no. If that isn't what you're asking, could you rephrase the question? :-) wp Sent from my iPhone On May 14, 2008, at 8:35 AM, colo

Re: Cocoa and Carbon

2008-05-14 Thread Stefan Werner
On May 14, 2008, at 7:21 AM, Gerriet M. Denkmann wrote: I always thought that Cocoa is an Objective-C API, which is a more convenient counterpart to the more verbose or more cumbersome C API of Carbon, which often gives more detailed control though. You would hope that Cocoa and Carbon

A file's icon in daemon?

2008-05-14 Thread Karl Moskowski
From reading Apple's technote tn2083, I know AppKit is not a daemon- safe framework. However, I found an old post to the list that said it's long been possible to use NSImage headlessly by linking against AppKit anyway, calling [NSApplication sharedApplication] somewhere, then doing the

Re: Bypassing Interface Builder

2008-05-14 Thread Andy Lee
On May 14, 2008, at 11:35 AM, colo wrote: Hmmm. The letting it create the files in the nib file sounds fine for me. But what about the linking and configuring? It's just all reflected in code correct? The dragging a pipe to one object to the other that just all shows up in the .m right? No.

Re: Bypassing Interface Builder

2008-05-14 Thread Stefan Werner
On May 14, 2008, at 9:13 AM, glenn andreas wrote: Also, when you support localization, you really need to use NIBs. Different languages can easily require different layouts, due to string lengths (German UI text tends to be _much_ longer often requiring serious re-do of layouts), cultural

Re: Fullscreen on secondary displays

2008-05-14 Thread Sean McBride
On 5/13/08 11:30 PM, Dennis Munsie said: This code worked for me -- with one change: the NSRect from [screen frame] has the offset set to it's relative location to the main display. This is what was throwing me off the entire time :) By setting the offset to 0,0 I was able to get a visible full

Re: Cocoa and Carbon

2008-05-14 Thread Scott Ribe
It's about using the right tool for the job, sometimes Cocoa is the right tool, sometimes Carbon is. Also note that the definition of Carbon has evolved, becoming narrower over time, as more of the low-level APIs that do not relate to user interface have been rebranded Core instead of Carbon.

Re: Bypassing Interface Builder

2008-05-14 Thread Bill Bumgarner
On May 14, 2008, at 9:46 AM, Stefan Werner wrote: Actually, there are many frameworks that do dynamic layouts with widgets that will automatically resize to fit their labels (Java Swing for example). I'm not aware of an easy way of doing this in native Cocoa, but it should be possible do

Re: Can I use NSString classes SYNCHRONOUSLY?

2008-05-14 Thread fclee
It says in the Stream Programming Guide for Cocoa (Pg 10) doc: ...The Cocoa stream classes use the delegation model for asynchronous behavior (assuming run-loop scheduling) while Core Foundation uses client callbacks oh... wait a minute: ...(assuming run-loop scheduling). Okay. I'm not

Fwd: NSRectFillListWithColors question

2008-05-14 Thread Davide Scheriani
okkei,good,this is working,but I wanted to use NSArray instead a simple C-style array. In many case I have NSArray it hold NSValue for each NSRect. On 14.05.2008, at 15:32, Davide Scheriani wrote: I was playing around with the Graphics drawing method and I wanted to use

Re: Bypassing Interface Builder

2008-05-14 Thread colo
I second that to a T. Reading over all the messages now. On Wed, May 14, 2008 at 1:34 PM, Boyd Collier [EMAIL PROTECTED] wrote: Andy, Just wanted to congratulate you for your exceptionally clear and succinct summary. If I'd had it when I first started using Interface Builder, it would have

Conditionally modifying NIBs?

2008-05-14 Thread Mike Fischer
Hi! Given the recent/ongoing discussion about bypassing Interface Builder I have one question/issue for which IB does not seem to provide any solution. Interface Builder and NIBs are nice and have many advantages but I am missing a way to build different versions of nib files depending

messaging the object that allocated an object

2008-05-14 Thread James Churchman
Hi guys, really beginners question but i am allocating my webViewController like so: WebViewController *webViewController = [[WebViewController alloc] init]; So now i have all my code running in my webViewController controller object, but i really need to call a method that is in the

Re: messaging the object that allocated an object

2008-05-14 Thread James Churchman
Hi guys, really beginner type question but i am allocating my webViewController like so: WebViewController *webViewController = [[WebViewController alloc] init]; So now i have all my code running in my webViewController controller object, but i really need to call a method that is in the

Re: NSRectFillListWithColors question

2008-05-14 Thread Nick Zitzmann
On May 14, 2008, at 11:19 AM, Davide Scheriani wrote: okkei,good,this is working,but I wanted to use NSArray instead a simple C-style array. In many case I have NSArray it hold NSValue for each NSRect. You could write a category that does this. I posted one to the list a while back that

Re: Launching Cocoa Application externally

2008-05-14 Thread Stuart Malin
On May 14, 2008, at 5:55 AM, [EMAIL PROTECTED] wrote: The App runs fine in gdb and even writes the output file. Still the same error (crash and no output written) when running it with open MyApp.app. Yann Have you built a deployment (Release) version? Unless you have done so, a Debug

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]

2008-05-14 Thread Louis Gerbarg
NSXMLParser needs to load everything into ram first, then it starts generating its stream of events. I recommend filing a bug asking for it to be enhanced to support incrementally available data. It will definitely be a dupe (I've filed it, among others I am sure)., but the more people who ask for

Re: xcode crashes on adding an embedded framework

2008-05-14 Thread j o a r
On May 14, 2008, at 11:23 AM, Albert Jordan wrote: I'm having a problem with crashes with xcode. how can i post the problem? over the week-end I downloaded and used Skype framework in some applications. Then, by accident, I believe I delete the skype framework. I discovered this by

Re: Conditionally modifying NIBs?

2008-05-14 Thread Mike Fischer
Am 14.05.2008 um 20:11 schrieb David Wilson: On Wed, May 14, 2008 at 1:37 PM, Mike Fischer [EMAIL PROTECTED] wrote: Details: Let's say I have a project which includes a nib N1 which builds a target T1. Now I want to add a new target T2 which builds a variant of of T1 that adds some

Re: Launching Cocoa Application externally

2008-05-14 Thread Jean-Daniel Dupas
Le 14 mai 08 à 19:56, Stuart Malin a écrit : On May 14, 2008, at 5:55 AM, [EMAIL PROTECTED] wrote: The App runs fine in gdb and even writes the output file. Still the same error (crash and no output written) when running it with open MyApp.app. Yann Have you built a deployment

basic bindings question

2008-05-14 Thread Daniel Child
Hi All, I'm trying to get my feet wet with bindings and want to try something simpler than the mail example provided online. All I'm trying to do is to replace the target-action-outlet approach with bindings in the simplest case I can think of: a text field whose value would correspond

Setting default application for URL scheme

2008-05-14 Thread Matthew Gertner
Hi, I'd like to set the application that should be run when a URL with a given scheme is opened. The only way I've found to do this is _LSSetDefaultSchemeHandlerURL, but I'd rather not go with an undocumented API if it can be avoided. Is there a Cocoa API or something for this that I haven't been

Re: messaging the object that allocated an object

2008-05-14 Thread Ken Thomases
On May 14, 2008, at 12:43 PM, James Churchman wrote: WebViewController *webViewController = [[WebViewController alloc] init]; So now i have all my code running in my webViewController controller object, but i really need to call a method that is in the MainViewController, which is in the

Re: Bypassing Interface Builder

2008-05-14 Thread Julius Guzy
Might there be not a tutorial but more documented examples of creating a window, calling to the window, adding widgets(buttons and such) and altering an NSCustomView. My goal is to make a drawing app from the Drawkit framework but for the life of me I just can't get past the use IB but Drawkit

Re: Setting default application for URL scheme

2008-05-14 Thread Nick Zitzmann
On May 14, 2008, at 1:16 PM, Matthew Gertner wrote: I'd like to set the application that should be run when a URL with a given scheme is opened. The only way I've found to do this is _LSSetDefaultSchemeHandlerURL, but I'd rather not go with an undocumented API if it can be avoided. Is there a

Launching Cocoa Application externally (Yann Disser)

2008-05-14 Thread Peter Hudson
Here's a few suggestions a) Check your settings in project ( as in project - edit project settings ) Check that your target platform and lib selection is OK. Ensure that you are not zero linking. b) Do a completely clean build - i.e. close the project and drop the build directory into

Problem binding to recreated NSCollectionView

2008-05-14 Thread David Carlisle
I'm trying to recreate NSCollectionView from scratch so I can customize the animations. I have a problem in binding the array controller arrangedObjects to the content of MyCollectionView. In a test situation where I have an instance of both MyCollectionView and NSCollectionView bound to

Re: Bypassing Interface Builder

2008-05-14 Thread Torsten Curdt
...also late joing this thread I have just spent the best part of five months learning enough objective-c and cocoa to create useful apps. I have been programming for 30 plus years and this has been the most difficult learning experience of my life. It is not just IB but also Project Builder

Re: basic bindings question

2008-05-14 Thread Ken Thomases
On May 14, 2008, at 2:08 PM, Daniel Child wrote: All I'm trying to do is to replace the target-action-outlet approach with bindings in the simplest case I can think of: a text field whose value would correspond to an ivar in the controller. One text field would receive the number, a button

Re: Setting default application for URL scheme

2008-05-14 Thread Ken Thomases
On May 14, 2008, at 3:06 PM, Nick Zitzmann wrote: On May 14, 2008, at 1:16 PM, Matthew Gertner wrote: I'd like to set the application that should be run when a URL with a given scheme is opened. The only way I've found to do this is _LSSetDefaultSchemeHandlerURL, but I'd rather not go with an

WWDC ticket needed

2008-05-14 Thread James Gregurich
greetings. Markzware is in need of a WWDC ticket. If anyone wants to sell one, please contact me at [EMAIL PROTECTED] The sellout caught us by surprise. thanks, James Gregurich Engineering Manager Markzware ___ Cocoa-dev mailing list

Re: Setting default application for URL scheme

2008-05-14 Thread Nick Zitzmann
On May 14, 2008, at 3:16 PM, Ken Thomases wrote: Do you really need to set the default handler? Generally, Mac applications merely advertise that they are capable of handling a given URL scheme and it's left to the user to pick the default handler. To merely advertise the capability,

Re: WWDC ticket needed

2008-05-14 Thread Pablo Pons Bordes
Hi, The sell out caught by surprice me to, so if anyone have one more to sell (or James you receive more than you need) please contact me at [EMAIL PROTECTED] thanks Pablo Pons El 14/05/2008, a las 22:25, James Gregurich escribió: greetings. Markzware is in need of a WWDC ticket. If

Re: Launching Cocoa Application externally (Yann Disser)

2008-05-14 Thread Hamish Allan
Please stop copying Yann Disser's name into the subject line! It breaks up threads unnecessarily. Hamish ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: NSRectFillListWithColors question

2008-05-14 Thread Hamish Allan
On Wed, May 14, 2008 at 6:47 PM, Nick Zitzmann [EMAIL PROTECTED] wrote: On May 14, 2008, at 11:19 AM, Davide Scheriani wrote: okkei,good,this is working,but I wanted to use NSArray instead a simple C-style array. In many case I have NSArray it hold NSValue for each NSRect. You could write

Re: Capture screenshot

2008-05-14 Thread brett
Am 14.05.2008 um 14:48 schrieb john muchow: My question for this group is if anyone is aware of a Cocoa API/library call to capture a screenshot. Check out the sample code at http://developer.apple.com/samplecode/OpenGLScreenSnapshot/index.html and

Re: Conditionally modifying NIBs?

2008-05-14 Thread Hamish Allan
On Wed, May 14, 2008 at 6:37 PM, Mike Fischer [EMAIL PROTECTED] wrote: I remember in the very dim past (when MacApp was still a modern framework ;-) that I had text based resource files (.r) to build the 'View' resources (rough analog to nibs) which included preprocessor macros to control

Re: Can I use NSString classes SYNCHRONOUSLY?

2008-05-14 Thread Jens Alfke
On 14 May '08, at 10:03 AM, [EMAIL PROTECTED] wrote: Essentially I want to mimic the Java HTTPConnect example I gave. I also want to be able to change the request property to POST, as in the Java equivalent: connection.setRequestMethod(HttpConnection.POST); If you're doing HTTP, use

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]

2008-05-14 Thread Jens Alfke
On 14 May '08, at 8:08 AM, Matt Gough wrote: Well, if iTunes is already running, why don't you just do it via Scripting Bridge? Because it would be orders of magnitude slower. Even the property list parser can read the iTunes library in a few seconds. Extracting all that information via

Re: Can I use NSString classes SYNCHRONOUSLY?

2008-05-14 Thread Dave Dribin
On May 14, 2008, at 5:11 PM, Jens Alfke wrote: On 14 May '08, at 10:03 AM, [EMAIL PROTECTED] wrote: Essentially I want to mimic the Java HTTPConnect example I gave. I also want to be able to change the request property to POST, as in the Java equivalent:

Re: Setting default application for URL scheme

2008-05-14 Thread Jens Alfke
On 14 May '08, at 2:25 PM, Nick Zitzmann wrote: That's the best way to do it. However, some programs tend to override the user's choices for default URL handlers. The proper UI is to show a pop-up menu (in your app's prefs) of applications that handle this scheme, with the current default

Re: Conditionally modifying NIBs?

2008-05-14 Thread Mike Fischer
Am 15.05.2008 um 00:07 schrieb Hamish Allan: On Wed, May 14, 2008 at 6:37 PM, Mike Fischer [EMAIL PROTECTED] wrote: I remember in the very dim past (when MacApp was still a modern framework ;-) that I had text based resource files (.r) to build the 'View' resources (rough analog to nibs)

Re: Setting default application for URL scheme

2008-05-14 Thread Nick Zitzmann
On May 14, 2008, at 4:23 PM, Jens Alfke wrote: The proper UI is to show a pop-up menu (in your app's prefs) of applications that handle this scheme, with the current default one selected, and let the user pick. That's what Safari, iChat, Mail, etc. all do. In theory, that's how it's

Re: Bypassing Interface Builder

2008-05-14 Thread colo
Well. Huh. After reading all of that. I wish there was sorta mentor program. Ah but where would be the fun in that. Any way thats off topic. Nothing more to say other than back to the books. And pray that I get IB soon enough, cause this is my third round at cramming this in. On Wed, May 14,

Re: Conditionally modifying NIBs?

2008-05-14 Thread Hamish Allan
On Wed, May 14, 2008 at 11:25 PM, Mike Fischer [EMAIL PROTECTED] wrote: (I know this can be hacked, and that while verbose it's only xml. But I'd want my apps building in the next Xcode (sub-)release as well.) Sure, well, you can't eat your cake and have it ;) I'd have thought that you could

NSRange

2008-05-14 Thread Mr. Gecko
Hello I am trying to find out how to get characters in the middle of two characters I have heard of NSRange but I can't find documentation to it in xcode. So here is what I am trying to do in this html page on line there are to points which stays the same and in the middle of the points is

Re: Bypassing Interface Builder

2008-05-14 Thread Graham Cox
On 15 May 2008, at 6:05 am, Julius Guzy wrote: I have no idea how the rest of you gained your expertise but working on my own, even with the help of books and the internet it has been an absolute nightmare. I imagine it can be hard without a structured approach to learning it - there's

Re: show/hide NSTabView

2008-05-14 Thread Torsten Curdt
OK ...I got a little further. Turns out the resize of the window should be enough. The size of the tabView should get adjusted automatically because of the autosize settings. - (void) showDetails:(BOOL)show animate:(BOOL)animate { NSSize fullSize = NSMakeSize(455, 302);

Re: NSRange

2008-05-14 Thread Randall Meadows
On May 14, 2008, at 5:25 PM, Mr. Gecko wrote: Hello I am trying to find out how to get characters in the middle of two characters I have heard of NSRange but I can't find documentation to it in xcode.

Re: show/hide NSTabView

2008-05-14 Thread David Dumaresq
Just a guess, but perhaps try not adding fullSize.height to windowFrame.size.height, just assign it the value of fullSize.height. Or initialize its value to zero before the if(show) condition. Instead of windowFrame.size.height += fullSize.height;

  1   2   >