Re: xcode crashes on adding an embedded framework

2008-05-14 Thread I. Savant
On Wed, May 14, 2008 at 2:23 PM, Albert Jordan <[EMAIL PROTECTED]> wrote: > I'm having a problem with crashes with xcode. how can i post the problem? There've been few XCode-specific threads on this list lately that have nothing to do with Cocoa. You'd probably get better help posting to the xc

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 no

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 ele

show/hide NSTabView

2008-05-14 Thread Torsten Curdt
While the code below seemed to have worked OK for showing/hiding a NSTextView I am now not really sure what's going on when using it on a NSTabView. - (void) showDetails:(BOOL)show animate:(BOOL)animate { NSSize fullSize = NSMakeSize(455, 302); NSRect windowFrame = [[

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 (Rel

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 to

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 do

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 C

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 t

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 w

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 (Cocoa-dev@lis

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, see

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 any

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 c

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 http://developer.apple.com/samplecod

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 NSURLConn

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: connection.setRequestMethod(HttpConnect

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 sup

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 cou

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 wh

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 a

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. > So here is what I am trying to do in this html page on line there are to points whic

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;

Re: NSRange

2008-05-14 Thread Mr. Gecko
I figured it out NSString *s = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://www.example.com/file.html "]]; NSRange f, l; f = [s rangeOfString:@" title=\"Title\">"]; if (f.location == NSNotFound) NSLog(@"failed"); s = [s substringFromIndex:f.location + f.length]; l = [s range

Re: Bypassing Interface Builder

2008-05-14 Thread Graham Cox
One thing to point out here (as the author of DrawKit) is that DrawKit doesn't use INTERFACE builder to any great extent because it is 95% data model. In the model-view-controller architecture, Interface Builder is useful mostly for V, and to some extent for C and very little for M. So tryi

Re: NSRange

2008-05-14 Thread Andy Lee
On May 14, 2008, at 7: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. Enter "NSRange" in the search field of the Xcode documentation window and do an "API" sea

Re: Bypassing Interface Builder

2008-05-14 Thread colo
On Wed, May 14, 2008 at 7:41 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > One thing to point out here (as the author of DrawKit) is that DrawKit > doesn't use INTERFACE builder to any great extent because it is 95% data > model. In the model-view-controller architecture, Interface Builder is > usefu

Re: Bypassing Interface Builder

2008-05-14 Thread Johnny Lundy
Hi, On this topic, when I drag an object out of the Library and set its class, IB sets the label of the object to the Class Name. Since this is an instance of the class, and not the Class Object itself, why is the name capitalized? And if I want to refer by name to that instance in my cod

Re: show/hide NSTabView

2008-05-14 Thread Torsten Curdt
Hey David, Thanks for the suggestion. But it's the window height. And that does indeed change properly. It's just the controls (the NSTabView) that misbehaves. Please see my other mail. cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Conditionally modifying NIBs?

2008-05-14 Thread Jonathan Hess
On May 14, 2008, at 4:10 PM, Hamish Allan wrote: 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

Re: Bypassing Interface Builder

2008-05-14 Thread Graham Cox
Do join the DK mailing list if you haven't already. (http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net ) I'm very willing to help people out with learning the framework, and I don't want to pollute cocoa-dev with DK related stuff. A new beta and a start on the documentation is coming (

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
Graham, your responses were very well-put. I had to step away from this thread to meet some deadlines today and I'm glad to see where it's gone for the most part. I rushed to the defense of IB because, for what it is intended, it really is a powerful and useful tool. Unnecessary struggl

Re: Bypassing Interface Builder

2008-05-14 Thread Graham Cox
On 15 May 2008, at 10:15 am, Johnny Lundy wrote: Hi, On this topic, when I drag an object out of the Library and set its class, IB sets the label of the object to the Class Name. Since this is an instance of the class, and not the Class Object itself, why is the name capitalized? And if

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
On this topic, when I drag an object out of the Library and set its class, IB sets the label of the object to the Class Name. Since this is an instance of the class, and not the Class Object itself, why is the name capitalized? It's just a convenient label. If you have two ThingControll

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
On May 14, 2008, at 8:45 PM, Graham Cox wrote: It depends. It's the file's (nib's) owner. If you are talking about MainMenu.nib, its owner is the application instance. For typical document nibs, it's the NSDocument instance. For others, it's whatever you pass as "owner" in the NSBundle clas

cross-development Problems

2008-05-14 Thread Celery01 Lin
Hi all I have a framework "A" depends on a static lib "slib" . My Testapp depends on Framework "A" and it use a method inside the "slib", which call HIShapeCreateWithRect. I built my Testapp using 10.5sdk on leopard and set the Deployment Target as 10.4 Tiger. Everything works well on leopard . Bu

Re: Bypassing Interface Builder

2008-05-14 Thread Andy Lee
On May 14, 2008, at 8:45 PM, Graham Cox wrote: On 15 May 2008, at 10:15 am, Johnny Lundy wrote: Also, the documentation only says about File's Owner that it is the object that loaded the nib file. What is that object, if my nib file just gets loaded at application launch? It depends. It's t

Re: Bypassing Interface Builder

2008-05-14 Thread Graham Cox
Actually I wonder if this could be a useful enhancement to IB? Say if you've never edited the object's name from the default, but then drag- connect an outlet to it, the label changed to the name of the outlet. That would be a quick and easy way to see at a glance what object it is *in terms

Re: cross-development Problems

2008-05-14 Thread Nick Zitzmann
On May 14, 2008, at 6:59 PM, Celery01 Lin wrote: This is a very wired problem . HIShapeCreateWithRect is inside Carbon.framework. Why the linker trys to resolve it in ApplicationServices? Dose anyone have any suggestion ? Try searching the xcode-users list archives; this problem has come

Re: Bypassing Interface Builder

2008-05-14 Thread Andy Lee
On May 14, 2008, at 8:51 PM, I. Savant wrote: Also, the documentation only says about File's Owner that it is the object that loaded the nib file. What is that object, if my nib file just gets loaded at application launch? Your app's NSApplication instance. This is in the documentation. I

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
On May 14, 2008, at 8:51 PM, I. Savant wrote: And if I want to refer by name to that instance in my code, what is the name of the instance? Nothing. That is, not until you add an IBOutlet in whatever class you want to connect to that instance. Let me clarify this a bit further. An inst

Re: Bypassing Interface Builder

2008-05-14 Thread Andy Lee
It might get confusing if you have multiple objects with differently named outlets pointing to the same thing. --Andy On May 14, 2008, at 9:02 PM, Graham Cox wrote: Actually I wonder if this could be a useful enhancement to IB? Say if you've never edited the object's name from the default,

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
Actually I wonder if this could be a useful enhancement to IB? Say if you've never edited the object's name from the default, but then drag-connect an outlet to it, the label changed to the name of the outlet. That would be a quick and easy way to see at a glance what object it is *in terms

Re: cross-development Problems

2008-05-14 Thread Jack Repenning
On May 14, 2008, at 5:59 PM, Celery01 Lin wrote: But When I switch to tiger , MyTest crashs because of "dyld: lazy symbol binding failed: symbol not found: HIShapeCreateWithRect .. Expected in : /system/library/Frameworks/ApplicationService.framework/Versions/A/ ApplicationServices " T

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
On May 14, 2008, at 9:06 PM, Andy Lee wrote: It can be a little tricky to find, though. That's only if you're searching myopically for that one answer. If, on the other hand, you read the conceptual documentation all the way through as you're meant to, you should definitely come across i

Dynamic message typing problem

2008-05-14 Thread Julius Guzy
Hi, It would be great if someone would kindly tell me what I'm doing wrong. Something like the much simplified code below used to work under Tiger in 10.4 running on antique 400 MHz G4. The idea is that the program passes the id of an anonTargetClassObject to a calling object which then sends

Guidance for Cocoa's steep learning curve

2008-05-14 Thread Erik Buck
The obstacles, misconceptions, and prerequisite concepts that need to be mastered when learning Cocoa vary dramatically based on the past experience of the learner. I am a very experienced Cocoa programmer. I am also an author of the thickest Cocoa Programming book and have another Cocoa

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
no, i know how to printed document without UI, just set [printOp setShowsPrintPanel:NO]; i realy want to close the dialog with programtically, is it possiable? 2008/5/14 Rimas <[EMAIL PROTECTED]>: > What are you trying to achieve? Get printed document without UI? > > > 2. > > when we implement

Re: Bypassing Interface Builder

2008-05-14 Thread Andy Lee
On May 14, 2008, at 9:15 PM, I. Savant wrote: On May 14, 2008, at 9:06 PM, Andy Lee wrote: It can be a little tricky to find, though. That's only if you're searching myopically for that one answer. Or if you're trying to tell someone where he would have found the answer if he'd read the

Re: cross-development Problems

2008-05-14 Thread Celery01 Lin
Thank you Nick , I'm searching it now~ On Wed, May 14, 2008 at 6:02 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > > On May 14, 2008, at 6:59 PM, Celery01 Lin wrote: > > This is a very wired problem . HIShapeCreateWithRect is inside >> Carbon.framework. Why the linker trys to resolve it in >> Ap

Re: Bypassing Interface Builder

2008-05-14 Thread Julius Guzy
On 14 May 2008, at 22:55, Torsten Curdt <[EMAIL PROTECTED]> wrote This mailing list is a great resource ...but maybe there is a reason why even simple things get asked again and again. Yes, exactly. I think there is a dearth of good examples and a difficulty in finding the keywords to use when

Re: Bypassing Interface Builder

2008-05-14 Thread I. Savant
Or if you're trying to tell someone where he would have found the answer if he'd read the conceptual documentation methodically. :) Touché. Though under protest: your original point started with the fact that it's tricky to "find". ;-) Fair point, and the distinction between concepts doc

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
You are kind to give me more detail about it. I know the panel will update the preview when some printInfo changed. What 's the attribute will affecte the preview can set with the function keyPathsForValuesAffectingPreview . It is ok. But in my app, the preview changes without any printInf

Re: Guidance for Cocoa's steep learning curve

2008-05-14 Thread Ricky Sharp
On May 14, 2008, at 8:19 PM, Erik Buck wrote: I would just like to add the following: (1) It also depends upon prior framework experience as to how easy or difficult it will be to dive into Cocoa. I learned event-driven programming very early and had the advantage of either using or a

Re: Bypassing Interface Builder

2008-05-14 Thread Johnny Lundy
Actually, I have read that many times. My reason for reading it was that so many example codes and tutorials say to bind an interface item to File's Owner, but don't say why or what that binding accomplishes. So it's the application instance. I don't understand what the application instance

Re: Bypassing Interface Builder

2008-05-14 Thread Julius Guzy
On 15 May 2008, at 0:29, Graham Cox <[EMAIL PROTECTED]> 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 -

Re: Bypassing Interface Builder

2008-05-14 Thread Johnny Lundy
Just another note - the reason that I asked this is that I finally added a second class to my project. I had never had 2 classes in a project before because I didn't understand how to have them communicate. Actually, I still don't - I just try everything until something works. I wrote the

Re: Guidance for Cocoa's steep learning curve

2008-05-14 Thread Scott Ribe
>> === If you are primarily an experienced C++ programmer (In my >> experience you will have the hardest time) > > > (2) I will have to personally disagree with this. I wonder, seriously, if it doesn't depend somewhat on whether or not you're a really good C++ programmer... -- Scott Ribe [EMAI

Re: Bypassing Interface Builder

2008-05-14 Thread Graham Cox
On 15 May 2008, at 12:54 pm, Johnny Lundy wrote: Just another note - the reason that I asked this is that I finally added a second class to my project. I had never had 2 classes in a project before because I didn't understand how to have them communicate. Actually, I still don't - I just t

Re: basic bindings question

2008-05-14 Thread Daniel Child
I think I understood the first half of what you said, and can now see why making number the receiver of addObserver was totally wrong. But I seem to have a problem. If I want to observe the property of an object, and in my case, it turns out that the M and C are collapsed into a model-contro

Re: basic bindings question

2008-05-14 Thread Ken Thomases
On May 14, 2008, at 10:54 PM, Daniel Child wrote: If I want to observe the property of an object, and in my case, it turns out that the M and C are collapsed into a model-controller, then it's basically a case of asking something to observe itself. Well, it is sometimes desirable for an obje

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-14 Thread Apparao Mulpuri
Is it a known issue on Leopard. Is there any fix? I am planning to file a bug in apple bugreporter. Is any one filed it already?. - Apparao. On Wed, May 14, 2008 at 7:00 PM, Apparao Mulpuri <[EMAIL PROTECTED]> wrote: > HI, > > I have a Cocoa based multi monitor application,which will run on >

Re: NSRange

2008-05-14 Thread Jens Alfke
On 14 May '08, at 4:25 PM, Mr. Gecko wrote: text I want so I want to get the text in the middle of points title="Ttitle"> and Trying to parse HTML by hand like this is a good way to lose your mind. Seriously, don't try it. Simple searching through strings looking for delimiters doesn'

window controller's [self window] not working

2008-05-14 Thread Daniel Child
I have a window controller that I initialize using initWithWindowNibName. To improve readability later in the code, I try to cache the window outlet to another variable. [self window] returns no value, however. This exact same code used to work in previous incarnations of the program, and

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-14 Thread Jens Alfke
On 14 May '08, at 9:17 PM, Apparao Mulpuri wrote: ** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]: -[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60, window

Re: window controller's [self window] not working

2008-05-14 Thread j o a r
On May 14, 2008, at 9:23 PM, Daniel Child wrote: This exact same code used to work in previous incarnations of the program, and it seems that it simply "broke" when I opened the nib in IB3 and added a text field. (It was originally created in IB2 and worked fine in Leopard and XCode 3 unti

Re: window controller's [self window] not working

2008-05-14 Thread Ken Thomases
On May 14, 2008, at 11:23 PM, Daniel Child wrote: I am just getting used to IB3 but don't see what or how I could have broken the connection. Are there any obvious culprits? The first thing to check is if the "window" outlet of the NSWindowController (probably File's Owner) is connected to t

[ANN] DrawKit beta 3 now available

2008-05-14 Thread Graham Cox
The third beta of DrawKit is now available from http://apptree.net/drawkitmain.htm While still beta, this is generally bug free (unless I'm told different) and is likely to represent the final architecture, feature set and class design. What is it? DrawKit is a Cocoa framework for impleme

Re: basic bindings question

2008-05-14 Thread Daniel Child
On May 15, 2008, at 12:09 AM, Ken Thomases wrote: Can you be more specific about why you want your controller to observe its own number property? What are you trying to accomplish? I suspect there's another way to accomplish what you're interested in. I'm simply trying to reduce bindings

Re: basic bindings question

2008-05-14 Thread Ken Thomases
On May 14, 2008, at 11:43 PM, Daniel Child wrote: On May 15, 2008, at 12:09 AM, Ken Thomases wrote: Can you be more specific about why you want your controller to observe its own number property? What are you trying to accomplish? I suspect there's another way to accomplish what you're

any help with [NSThread initWithTarget:selector:object]???

2008-05-14 Thread Alex Esplin
Hey all, Sorry if this has been answered before, I've been googling and not coming up with a direct answer to my problem. I'm working on a (should be) trivial Vote Counter program for a class. I've elected to implement the project in Objective-C/Foundation because I already know how to do someth

Re: Guidance for Cocoa's steep learning curve

2008-05-14 Thread David Wilson
On Wed, May 14, 2008 at 11:33 PM, Scott Ribe <[EMAIL PROTECTED]> wrote: >>> === If you are primarily an experienced C++ programmer (In my >>> experience you will have the hardest time) >> >> >> (2) I will have to personally disagree with this. > > I wonder, seriously, if it doesn't depend somewhat

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-14 Thread Bill Bumgarner
On May 14, 2008, at 10:15 PM, Alex Esplin wrote: Everything compiles, and when I run it, the Console tells me that debugging completed normally. However, I'm getting nothing in the way of output from any of the threads: Does your main thread wait until the background threads are done? b.bum

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-14 Thread Ken Thomases
On May 15, 2008, at 12:15 AM, Alex Esplin wrote: Everything compiles, and when I run it, the Console tells me that debugging completed normally. However, I'm getting nothing in the way of output from any of the threads: Is your main function waiting for the threads to complete, or is it just

Re: Bypassing Interface Builder

2008-05-14 Thread Uli Kusterer
Am 14.05.2008 um 16:36 schrieb colo: 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 does not use IB but the books do and swear that I should fiasco! Ah ha ha ha ha h haha h hah aa haa I think you're going down t

Re: Bypassing Interface Builder

2008-05-14 Thread Uli Kusterer
Am 15.05.2008 um 00:53 schrieb 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. There is a mentor program. It is called: 'Pay Scott Stevenson of http://treehouseideas.com to mentor you' (Scott

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-14 Thread Alex Esplin
On Wed, May 14, 2008 at 11:26 PM, Ken Thomases <[EMAIL PROTECTED]> wrote: > On May 15, 2008, at 12:15 AM, Alex Esplin wrote: >> >> Everything compiles, and when I run it, the Console tells me that >> debugging completed normally. However, I'm getting nothing in the way >> of output from any of the

Re: Bypassing Interface Builder

2008-05-14 Thread Uli Kusterer
Am 15.05.2008 um 02:15 schrieb Johnny Lundy: And if I want to refer by name to that instance in my code, what is the name of the instance? You don't. What you're doing is the approach taken by other frameworks, like Carbon: 1) Every object in a GUI description file has a unique identifie

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. Contact

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 A

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]>: > ... > > ... > path is not full path. > > it's occur error like this, > Can't not Found "file:///image/nateon_tui/0728_im_011_img.gif" This is show

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 set

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 nothing

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 thing?

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 from

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 accept

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 printOperationWithView:viewToP

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

  1   2   >