Re: examining images

2008-07-17 Thread Graham Cox
This isn't something that Cocoa can do, nor would you expect it to. You'll come to realise that this is a very complex task. My supervisor at University developed an algorithm that did exactly what you're describing using wavelets - in fact it was generally able to locate any feature in an

Core-data save problem

2008-07-17 Thread Dirkjan Krijnders
Hi, I have a core data document based program that, for now, parses a gpx file and stores the information in a core-data model. All works fine, until I try to save the data, then I am sometimes present with a dialog saying: "The document “Untitled” could not be saved as “pktest.”. Cannot sa

the alert sheet without the application icon

2008-07-17 Thread 李国良
You know, most alerts are standard alerts, they display the application icon of the current application. My question is that how to display the alert sheet without the application icon, just with some characters. Do i need to custom a sheet in Interface Builder? Thanks very much. -- Best regards t

Re: the alert sheet without the application icon

2008-07-17 Thread Jean-Daniel Dupas
Le 17 juil. 08 à 10:33, 李国良 a écrit : You know, most alerts are standard alerts, they display the application icon of the current application. My question is that how to display the alert sheet without the application icon, just with some characters. Do i need to custom a sheet in Interfa

isEqual: vs isEqualTo:

2008-07-17 Thread Jens Miltner
Hi all, I'm somewhat confused regarding the difference between the isEqual: and the isEqualTo: defined in the NSObject interface. What's the difference and is there a penalty paid when using isEqualTo: instead of isEqual:? So far, I've been mostly using isEqualTo: since it was the intuitive

Re: isEqual: vs isEqualTo:

2008-07-17 Thread Seth Willits
On Jul 17, 2008, at 2:20 AM, Jens Miltner wrote: From the documentation, I can't really tell whether there are just two separate implementations or whether one just calls the other isEqualTo: just calls isEqual: as it says in the comment: - (BOOL)isEqualTo:(id)object; // Implemented usi

Re: Relaunch Finder (without AppleScript)

2008-07-17 Thread Piero Avola
I don't know why but NSAppleScript seems to work again... (It's not relevant if GC is on or off). Thanks for your help ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: notification when app is moved

2008-07-17 Thread Mitchell Livingston
How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why should it ever fail? Storing it in the library folder is not a real good option. On Thursday, July 17, 2008, at 12:09AM, "Omar Qazi" <[EMAIL P

Re: how do I make chat bubbles using a custom cell

2008-07-17 Thread TARUN CHAPLOT
Hello Everyone Thanks for the great response and good guidance. Some of the stuff I do not understand as I am very new to this programming. But still I am trying my best to read as much as ossible. I am following the idea that one of you suggested regarding the webview. So I am using webview and b

Concurrent network transmission

2008-07-17 Thread em
G'day all, Every computer that Apple sells contains both fire-wire as well as built-in Ethernet. Is there any generally re-useable technique (API?) for utilizing TCP/IP over both the built-in Ethernet connection as well as 'TCP-IP over firewire' for high-speed network transmission? thanks, em _

Re: Concurrent network transmission

2008-07-17 Thread Matt Gough
On 17 Jul 2008, at 1:41pm, em wrote: Every computer that Apple sells contains both fire-wire as well as built-in Ethernet. Is there any generally re-useable technique (API?) for utilizing TCP/IP over both the built-in Ethernet connection as well as 'TCP-IP over firewire' for high-speed ne

Re: Concurrent network transmission

2008-07-17 Thread publictom
Erm, not sure if this is still cocoa. In terms of TCP/IP there is no device to select, its just the systems routing tables that decide which way to go ... so no API needed. Tom Am 17.07.2008 um 14:04 schrieb Matt Gough: On 17 Jul 2008, at 1:41pm, em wrote: Every computer that Apple sel

Re: how do I make chat bubbles using a custom cell

2008-07-17 Thread I. Savant
> Now my another query is when I type a text into a textfield and press the > send button how it comes on the same window with a bubble background. > So far I am only getting a webview on window with a textfield and the colour > of view is according to css file. You're going to need a controll

Re: Concurrent network transmission

2008-07-17 Thread em
Matt, much thanks for the correction to my inaccurate statement. If I'm not mistaken my 2.0Ghz G5 iMac has FW400--not FW800. Also the current minis have FW400 only. This is surprising since older models, i believe, had FW800--years ago. I could be wrong and I apaologize for not taking the time

Sign extension in NSNumber / 10.4 SDK???

2008-07-17 Thread Thomas Engelmeier
Hi, I'm running into problems with [NSNumber numberWithUnsignedShort: 0x8000]. The following app returns the expected values when compiled against the Leopard SDK. Compiled against the 10.4 SDK, I get: NSNumberTest[6058:813] 8000 (expected:8000) 8000 (expected:8000) -32768 (expecte

Re: notification when app is moved

2008-07-17 Thread Devon Ferns
Why not just call it every time it starts up? I can't imagine the overhead of the API call is very high. Devon. Mitchell Livingston wrote: How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why

Inverse Regex Library?

2008-07-17 Thread Philip Mötteli
Hi, Does anybody know of a library, that takes a bunch of strings and produces a regex-string from them? E. g: "Word1" "Word2" "Word5" "Word8" "Word11" "Word19" "Word23" "Word45" "Word77" should give "Word[0-9]{1,2}". Or I would even be more happy with "Word[0-9]+". I've heard of Grail+.

Extracting and Converting snd resources

2008-07-17 Thread louisk2
You are not allowed to post to this mailing list, and your message has been automatically rejected. If you think that your messages are being rejected in error, contact the mailing list owner at [EMAIL PROTECTED] From: Louis Klaassen <[EMAIL PROTECTED]> Date: 18 July 2008 12:43:35 AM To: cocoa-

Re: NSMessagePort Invalidation

2008-07-17 Thread Keary Suska
7/15/08 8:48 AM, also sprach [EMAIL PROTECTED]: > NSMessagePort doesn't seem to post the > NSPortDidBecomeInvalidNotification notification when the remote port > dies. It doesn't seem to matter if the remote port is closed via the > invalidate method or by killing the process. The only way I am se

Re: Sorting a to-many relationship property

2008-07-17 Thread Keary Suska
7/16/08 6:37 PM, also sprach [EMAIL PROTECTED]: > I have a couple entities related by a to-many relationship. Entity Foo > can have 0..N of Entity Bar. I have a relationship defined on Foo > named "bars". In my code, I build a comma-delimited string of Bars by > iterating over the NSArray* returne

Re: Duplicate rows appearing in outlineview after creating new Entity in moc, why?

2008-07-17 Thread Jonathan Dann
Yeah come to think of it I saw this behaviour when adopting the mediator pattern in my app. In the NSPersistentDoc tutorial you can create a Dept. object just using NSObjectController, then bind your array contorller's contentSet binding to the object controller's dept.employees keypath (o

Re: NSOutlineView force expansion/refresh?

2008-07-17 Thread Corbin Dunn
On Jul 16, 2008, at 3:22 PM, Michael Hanna wrote: I'm using observeValueForKeyPath:ofObject:change:context: to detect when a change occurs in my data model. When a non-leaf node gets added, the outline view draws the new item, but in an unexpanded state. I try this code: [m_rulesOutlineView

Where's the best place for addObserver and removeObserver

2008-07-17 Thread Joan Lluch (casa)
I am coding a single window, multiview, app, and as what I think is a recommended design pattern I only load the views controllers (and therefore their views) from their nibs as they are required, and then I retain them in the main window controller so they do not have to be loaded again ea

: Sorting a to-many relationship property

2008-07-17 Thread Keary Suska
Oop--forget about the accessor override bit. I forgot that to-many relationships are represented with NSSets. Sorry, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" -- Forwarded Message > From: Keary Suska <[EMAIL PROTECTED]> > Date: Thu, 17 Jul 2008 08:56:2

Re: NSMessagePort Invalidation

2008-07-17 Thread Jean-Daniel Dupas
Le 17 juil. 08 à 16:48, Keary Suska a écrit : 7/15/08 8:48 AM, also sprach [EMAIL PROTECTED]: NSMessagePort doesn't seem to post the NSPortDidBecomeInvalidNotification notification when the remote port dies. It doesn't seem to matter if the remote port is closed via the invalidate method or b

Re: Inverse Regex Library?

2008-07-17 Thread Erik Buck
You ask an interesting computer science question (that's unrelated to Cocoa). Surely the following sequence of words would produce Word[1-9]{1,2} instead of Word[0-9]{1,2} because there is no representative 0 in the sample ? "Word1" "Word2" "Word5" "Word8" "Word11" "Word19" "Word23" "W

Re: Where's the best place for addObserver and removeObserver

2008-07-17 Thread Keary Suska
7/17/08 8:59 AM, also sprach [EMAIL PROTECTED]: > However, the way I am doing it makes me wonder where the best place > should be for adding and removing the observers. What I am currently > doing is adding the observers in the awakeFromNib methods of each > viewController, and removing them in th

Re: Inverse Regex Library?

2008-07-17 Thread Giao Nguyen
On Jul 17, 2008, at 10:18 AM, Erik Buck wrote: Anyway, I think this is an unsolvable problem, and I might start with an attempted proof of its unsolvability rather than a solution. It may be solvable for simple cases. For the example given, I'd compose bi-grams out of the terms involved

NSArraycontroller, Bindings nad NSTableview

2008-07-17 Thread Louis Demers
Hi, I've programmed for a while in Cocoa, with bindings... But for the first time I need a NSTableView and I would like to use NSArrayController with bindings to do as much work as possible and with the minimum amount of code. But I've had nothing but failure, even after inspecting many e

NSViewController Binding Problem continued

2008-07-17 Thread Ivy Feraco
There was a previous post back in April about a problem with binding to the representedObject in NSViewController. When instantiating the view controller, I set the represented object to an NSArrayController. vc = [[MyViewController alloc] initWithNibName:@"newView" bundle:nil]; [vc setRepr

RE:Authentication only for non admin login.

2008-07-17 Thread ninad walvekar
hi, I want to run an application such that it will pop-up for the admin user name and password(authentication) when run by nonadmin (standard )login. let me explain what i am doing:- - (BOOL)Authenticate { AuthorizationRights myRights; AuthorizationItem myItems[1]; Authoriz

Re: NSArraycontroller, Bindings nad NSTableview

2008-07-17 Thread Sean McBride
On 7/17/08 11:52 AM, Louis Demers said: > I've programmed for a while in Cocoa, with bindings... But for the >first time I need a NSTableView and I would like to use >NSArrayController with bindings to do as much work as possible and >with the minimum amount of code. But I've had nothing but

Re: Where's the best place for addObserver and removeObserver

2008-07-17 Thread Jonathan Dann
Hi Joan, As Keary says, removing in -dealloc is probably not the best thing to do as there are a few cases that this can bite you, like if your window controller retains the view controllers, and -dealloc is called on the window controller, which would proceed to release its collection of

Re: Inverse Regex Library?

2008-07-17 Thread Vincent E.
It could also have been: Word[1247]?[1235789] or Word[124578][13579]? Conclusion: Don't think a reliable solution for this can exist. It's just too few information to detect the right pattern. Even as a human being I'm actually not even 75% sure what's the right pattern for th

How to programmatically open an NSComboBox's list?

2008-07-17 Thread Jens Alfke
I have an NSComboBox, and I want to automatically pop open the list, without the user having to click the button. But I can't find anything in the API of either the control or the cell to do this. Did I overlook something? (I suspect there might be a sneaky way to do this using the Access

Re: NSViewController Binding Problem continued

2008-07-17 Thread Sean McBride
On 7/17/08 11:53 AM, Ivy Feraco said: >There was a previous post back in April about a problem with binding >to the representedObject in NSViewController. I missed that, but I am having problems binding via NSViewController's representedObject too. >When instantiating the view controller, I set

NSApp delegate without a nib

2008-07-17 Thread Francisco Tolmasky
I've looked around the docs quite a bit and haven't been able to find an answer to this. Basically, I'd like to know if it is at all possible to set the application delegate without a nib, and without subclassing NSApplication or mucking around inside of main(). Is there something similar

Re: Inverse Regex Library?

2008-07-17 Thread Andrew Thompson
Your question is a simple problem, actually, that hides a hard problem. Creating a regex from a bunch of strings is simple, just take all the words and OR them together, so in your example: Word1 | Word2 | Word5 | Word8 | Word11 | Word19 | Word23 | Word45 | Word77 Unfortunately, there is no known

Re: examining images

2008-07-17 Thread Allan Schaffer
Hello Duncan, On Jul 16, 2008, at 10:20 PM, Duncan Campbell wrote: I'm writing an application that is designed to scan images of people's eyes. Among other things, app needs to look at things like the color , shape, amount of redness, size of pupil etc. I'm looking for some pointers towards

Re: Handling key equivalents in a controller class?

2008-07-17 Thread Jens Alfke
On 16 Jul '08, at 2:53 PM, Matt Neuburg wrote: Implement keyDown: in the NSWindowController? keyDown: only gets sent to the key view, whether or not it handles that keystroke. Since the method returns void, there's no way for AppKit to tell whether a responder handled the keystroke or not

Re: how do I make chat bubbles using a custom cell

2008-07-17 Thread Jens Alfke
On 16 Jul '08, at 8:22 AM, chaitanya pandit wrote: One idea would be to create an NSBezierPath with the shape of the chat bubble, once u have it you can use the CTGradient calss's [gradient fillBezierPath] method to fill it with an aqua look. The CTGradient project is here: http://blog.oof

IBOutlet to same control in different nibs

2008-07-17 Thread Trygve Inda
I touched on this before, but I think this is a better explanation of the problem. I am creating a System Pref Pane that has one window for each physical monitor, very similar to the Displays prefpane. Like the Displays prefpane, on the Main monitor there will be the System Pref window with 4 tabs

Re: NSApp delegate without a nib

2008-07-17 Thread Jeff Johnson
On Jul 17, 2008, at 11:28 AM, Francisco Tolmasky wrote: I've looked around the docs quite a bit and haven't been able to find an answer to this. Basically, I'd like to know if it is at all possible to set the application delegate without a nib, and without subclassing NSApplication or muck

Re: Concurrent network transmission

2008-07-17 Thread Jens Alfke
On 17 Jul '08, at 6:13 AM, em wrote: So, architecturally, for high speed transmission over a closed network neighborhood of say 9 minis, isn't there something like a "SuperSocket" that could co-ordinate these now '3' streams of info. There's nothing "super" about it; just regular sockets.

Re: Sign extension in NSNumber / 10.4 SDK???

2008-07-17 Thread Jens Alfke
On 17 Jul '08, at 6:38 AM, Thomas Engelmeier wrote: What are my best options to get around that? (Except of using the next larger NSNumber variants to store unsigned values in order to prevent unwanted sign expensions for unsigned values)? Either require 10.5, or use a larger size. The pro

Re: how do I make chat bubbles using a custom cell

2008-07-17 Thread I. Savant
> Once you have a template image like that, it's easy to stretch it to fill > the balloon bounds using NSDrawNinePartImage. A great idea. Here's the best resource I've found on this method: http://www.karlkraft.com/index.php/2007/11/14/nsdrawninepartimage/ -- I.S. ___

Re: Toolbar code in separate Controller?

2008-07-17 Thread John Love
... and the lights went on ... and I hear fireworks! Andy said "I think of each of those bunches as categories of methods." YES!, not a category of an object, but a logically separate category of methods belonging to the object. So, @interface MyDocument (NSToolbarItemValidation) adds the m

Re: Concurrent network transmission

2008-07-17 Thread Shawn Erickson
On Thu, Jul 17, 2008 at 9:53 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 17 Jul '08, at 6:13 AM, em wrote: > >> So, architecturally, for high speed transmission over a closed network >> neighborhood of say 9 minis, isn't there something >> like a "SuperSocket" that could co-ordinate these now

IB calls Java method?

2008-07-17 Thread ahmed nabel
I want to use Interface Builder UI components to call Java methods (in their corresponding Java files). Is this possible? How? Please see my post on the Java mailing post: http://lists.apple.com/archives/java-dev/2008/Jul/msg00135.html Can anyone please refer to specific steps on how to do thi

Re: Sign extension in NSNumber / 10.4 SDK???

2008-07-17 Thread Thomas Engelmeier
Am 17.07.2008 um 18:55 schrieb Jens Alfke: What are my best options to get around that? (Except of using the next larger NSNumber variants to store unsigned values in order to prevent unwanted sign expensions for unsigned values)? Either require 10.5, or use a larger size. The problem is th

Re: NSButton alternate image problem - not redrawing

2008-07-17 Thread P Teeson
I posted about this issue but so far only one response. For the full details please see earlier in this thread. This is a summary: Initially the button has blank icons for both image and alternate image. User clicks on button, action method is called, in that method a different alternate image

RE: NSApp delegate without a nib

2008-07-17 Thread Joel Norvell
Francisco, It is possible to "set the application delegate ... without subclassing NSApplication or mucking around inside of main()." But I don't know an approach that doesn't require using IB. When I needed to do this, I used Mark Ericksen's very clear recipe from 2001: Re: [NSApp setDel

Re: NSApp delegate without a nib

2008-07-17 Thread Shawn Erickson
On Thu, Jul 17, 2008 at 9:28 AM, Francisco Tolmasky <[EMAIL PROTECTED]> wrote: > I've looked around the docs quite a bit and haven't been able to find an > answer to this. Why do you think you need to avoid using a simple nib? What you are asking to do is not supported. -Shawn ___

Re: IB calls Java method?

2008-07-17 Thread Shawn Erickson
On Thu, Jul 17, 2008 at 10:16 AM, ahmed nabel <[EMAIL PROTECTED]> wrote: > > I want to use Interface Builder UI components to call Java methods (in their > corresponding Java files). Is this possible? How? > > Please see my post on the Java mailing post: > > http://lists.apple.com/archives/java-de

Re: Handling key equivalents in a controller class?

2008-07-17 Thread Andy Lee
On Jul 16, 2008, at 2:43 PM, Kyle Sluder wrote: Except what happens if a field editor is key? Then the editor swallows all keys, including Esc. Or if it doesn't do this by default, Esc is one of the keys that it can swallow because NSTextView uses it as the "autocomplete" hotkey. Didn't this q

Re: notification when app is moved

2008-07-17 Thread Charles Srstka
On Jul 17, 2008, at 5:50 AM, Mitchell Livingston wrote: How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why should it ever fail? Storing it in the library folder is not a real good option.

Re: Toolbar code in separate Controller?

2008-07-17 Thread Andy Lee
On Jul 17, 2008, at 1:05 PM, John Love wrote: ... and the lights went on ... and I hear fireworks! Andy said "I think of each of those bunches as categories of methods." I'm glad it was good for you. :) --Andy ___ Cocoa-dev mailing list (Cocoa-de

Re: NSArraycontroller, Bindings nad NSTableview

2008-07-17 Thread Louis Demers
On 17-Jul-08, at 12:31 , mmalc crawford wrote: On Jul 17, 2008, at 8:52 AM, Louis Demers wrote: A button bound to the "add" or the "insert" method of the NSArrayController just does nothing. Do you mean "bound" or "connected using target action"? control dragged from my button to the n

Re: NSArraycontroller, Bindings nad NSTableview

2008-07-17 Thread Louis Demers
On 17-Jul-08, at 12:10 , Sean McBride wrote: On 7/17/08 11:52 AM, Louis Demers said: I've programmed for a while in Cocoa, with bindings... But for the first time I need a NSTableView and I would like to use NSArrayController with bindings to do as much work as possible and with the m

Re: NSArraycontroller, Bindings nad NSTableview

2008-07-17 Thread mmalc crawford
On Jul 17, 2008, at 8:52 AM, Louis Demers wrote: A button bound to the "add" or the "insert" method of the NSArrayController just does nothing. Do you mean "bound" or "connected using target action"? class toto Please follow Cocoa naming conventions -- class names begin with capital l

Re: mdbackup binary plist files

2008-07-17 Thread Omar Qazi
On Jul 16, 2008, at 8:15 PM, Ryan Chapman wrote: Hopefully there is someone here who knows something about binary plist files. When an iPhone's firmware is upgraded in iTunes, a framework called MobileSync creates a backup of the iPhone's data files. The backup is stored in .mdbackup files

Re: Sign extension in NSNumber / 10.4 SDK???

2008-07-17 Thread Sean McBride
On 7/17/08 9:55 AM, Jens Alfke said: >> What are my best options to get around that? (Except of using the >> next larger NSNumber variants to store unsigned values in order to >> prevent unwanted sign expensions for unsigned values)? > >Either require 10.5, or use a larger size. The problem is tha

Re: notification when app is moved

2008-07-17 Thread Omar Qazi
On Jul 17, 2008, at 3:50 AM, Mitchell Livingston wrote: How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why should it ever fail? Storing it in the library folder is

Re: How to programmatically open an NSComboBox's list?

2008-07-17 Thread Dmitri Goutnik
Hello Jens, On Jul 17, 2008, at 8:26 PM, Jens Alfke wrote: I have an NSComboBox, and I want to automatically pop open the list, without the user having to click the button. But I can't find anything in the API of either the control or the cell to do this. Did I overlook something? I know

Re: How to programmatically open an NSComboBox's list?

2008-07-17 Thread Omar Qazi
On Jul 17, 2008, at 9:26 AM, Jens Alfke wrote: I have an NSComboBox, and I want to automatically pop open the list, without the user having to click the button. But I can't find anything in the API of either the control or the cell to do this. Did I overlook something? Maybe you could fa

Re: Inverse Regex Library?

2008-07-17 Thread Philip Mötteli
Hi, Thanks for all the answers. Surely the following sequence of words would produce Word[1-9]{1,2} instead of Word[0-9]{1,2} because there is no representative 0 in the sample ? "Word1" "Word2" "Word5" "Word8" "Word11" "Word19" "Word23" "Word45" "Word77" how will the computer know t

Re: Handling key equivalents in a controller class?

2008-07-17 Thread Jens Alfke
On 17 Jul '08, at 10:45 AM, Andy Lee wrote: I'd add a (BOOL)handleMyKeyDown: method in a category of NSObject, and override keyDown: in NSApplication to traverse windows, delegates (perhaps including control delegates), and descendant views until something returns YES. Well, if I'm going

Re: Inverse Regex Library?

2008-07-17 Thread Andy Lee
On Jul 17, 2008, at 2:34 PM, Philip Mötteli wrote: I'm actually in a lucky position, because 1. The strings are not complicated at all. When you say they are not complicated, do you mean they are relatively short, or that there is some regularity to them that might reduce the problem from

Re: Sign extension in NSNumber / 10.4 SDK???

2008-07-17 Thread Jens Alfke
On 17 Jul '08, at 10:18 AM, Thomas Engelmeier wrote: Thanks for confirming. I'll probably end up writing enhancement requests to documentation so this behavior gets documented. You can do that, but I really doubt the 10.4 documentation is still being updated! I guess it could be added to t

Re: How to programmatically open an NSComboBox's list?

2008-07-17 Thread Jens Alfke
On 17 Jul '08, at 11:29 AM, Omar Qazi wrote: Maybe you could fake the mouse even that would normally pop it open. Actually, after some experimentation I figured out how to do it using the accessibility API: @interface NSComboBox (MYExpansionAPI) @property (getter=isExpanded) BOOL expande

Auxiliary Data with NSPersistentDocument

2008-07-17 Thread Rick Mann
I'm 99% certain I asked this question before, and got a few suggestions, but I can't find it. I have a Core Data model for most of my document's data, but there's a whole mess of other stuff that needs to be stored (e.g., the color in which certain types of lines are drawn, the view's posit

Re: NSViewController Binding Problem continued

2008-07-17 Thread Ron Lue-Sang
On Jul 17, 2008, at 8:53 AM, Ivy Feraco <[EMAIL PROTECTED]> wrote: There was a previous post back in April about a problem with binding to the representedObject in NSViewController. When instantiating the view controller, I set the represented object to an NSArrayController. vc = [[MyVi

Re: Inverse Regex Library?

2008-07-17 Thread Philip Mötteli
Am 17.07.2008 um 20:57 schrieb Andy Lee: On Jul 17, 2008, at 2:34 PM, Philip Mötteli wrote: I'm actually in a lucky position, because 1. The strings are not complicated at all. When you say they are not complicated, do you mean they are relatively short, or that there is some regularity to

Re: Inverse Regex Library?

2008-07-17 Thread Eric Miller
So, you're trying to locate all things that look like a C identifier: [A-Za-z_][A-Za-z0-9_]+? How do you identify the too-many relationships? Is there a token for it or is it something You see when you read the data? Whatever tool serialized the data needs to interpret it to unserialize it la

Array help!

2008-07-17 Thread Eric Lee
I'm doing Challenge from Chapter 6 in the 3rd edition of the Cocoa Programming for mac OS X book, and I've ran into some trouble. While I'm trying to reload data, there's always this warning the says: Warning: 'NSScrollView' may not respond to '-reloadData' (Messages without a matching metho

Re: Array help!

2008-07-17 Thread I. Savant
> While I'm trying to reload data, there's always this warning the says: > > Warning: 'NSScrollView' may not respond to '-reloadData' (Messages without a > matching method signature will be assumed to return 'id' and accept '...' as > arguments) It's most likely that you've dragged your connecti

Re: Array help!

2008-07-17 Thread Bob Warwick
From a quick glance, I'd say you've connected your tableview outlet to the scrollview in Interface Builder, not the tableview. Tableviews are contained within scrollviews. You can confirm by checking what the outlet's connected to under the 'outlets' tab of the info panel in IB. -Bob Wa

Re: Array help!

2008-07-17 Thread Andy Lee
d On Jul 17, 2008, at 4:50 PM, Eric Lee wrote: Warning: 'NSScrollView' may not respond to '-reloadData' (Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments) It's saying you are trying to send a reloadData message to an instance of NSSc

Re: notification when app is moved

2008-07-17 Thread Uli Kusterer
On 17.07.2008, at 12:50, Mitchell Livingston wrote: I need to pass the location to a c library and reset the location in this library when the application is moved, so I need a way to know when the app is moved. How can I call it again if I don't know it moved? Waiting until it fails is a

Re: Sign extension in NSNumber / 10.4 SDK???

2008-07-17 Thread Sean McBride
On 7/17/08 12:01 PM, Jens Alfke said: >> Interesting. What about NSKeyedArchiver? It has, for example, >> encodeInt32:forKey: but no unsigned equivalent. What should one do if >> one wants to encode a uint32? Are there sign extension dangers here? > >It shouldn't be a problem as long as you ca

Re: Inverse Regex Library?

2008-07-17 Thread Philip Mötteli
Am 17.07.2008 um 22:33 schrieb Hamish Allan: On Thu, Jul 17, 2008 at 8:49 PM, Philip Mötteli <[EMAIL PROTECTED]> wrote: I try to analyze objects, that have been serialized using keyed encoding. As long as there are only simple values, I have no problem. But the members of too-many IVars ar

Re: notification when app is moved

2008-07-17 Thread Jean-Daniel Dupas
Le 17 juil. 08 à 23:03, Uli Kusterer a écrit : On 17.07.2008, at 12:50, Mitchell Livingston wrote: I need to pass the location to a c library and reset the location in this library when the application is moved, so I need a way to know when the app is moved. How can I call it again if I d

just don't get it...

2008-07-17 Thread James Maxwell
Sorry folks, but there are things about IB that just don't make sense to me. How on earth to I communicate with an object that has been instantiated by Interface Builder??? I have a document-based app, and an AppController instantiated in IB. The AppController needs a reference to the doc

Re: notification when app is moved

2008-07-17 Thread Jean-Daniel Dupas
Le 17 juil. 08 à 23:13, Jean-Daniel Dupas a écrit : Le 17 juil. 08 à 23:03, Uli Kusterer a écrit : On 17.07.2008, at 12:50, Mitchell Livingston wrote: I need to pass the location to a c library and reset the location in this library when the application is moved, so I need a way to know

Re: just don't get it...

2008-07-17 Thread Nick Zitzmann
On Jul 17, 2008, at 3:14 PM, James Maxwell wrote: Sorry folks, but there are things about IB that just don't make sense to me. How on earth to I communicate with an object that has been instantiated by Interface Builder??? Declare an IBOutlet pointer connecting an instantiated class to

Re: just don't get it...

2008-07-17 Thread Shawn Erickson
On Thu, Jul 17, 2008 at 2:14 PM, James Maxwell <[EMAIL PROTECTED]> wrote: > Sorry folks, but there are things about IB that just don't make sense to me. > > How on earth to I communicate with an object that has been instantiated by > Interface Builder??? If you talking about an object instantiated

Re: just don't get it...

2008-07-17 Thread Andy Lee
On Jul 17, 2008, at 5:24 PM, Nick Zitzmann wrote: On Jul 17, 2008, at 3:14 PM, James Maxwell wrote: Sorry folks, but there are things about IB that just don't make sense to me. How on earth to I communicate with an object that has been instantiated by Interface Builder??? Declare an IBO

Re: just don't get it...

2008-07-17 Thread James Maxwell
oops. I accidentally replied directly to the excellent chap who helped me out... Just so nobody wastes any time answering this again -- NSDocumentController did the trick! J. On 17-Jul-08, at 2:21 PM, Jeff C wrote: NSDocumentController has what you're looking for. Check out the routines

Re: just don't get it...

2008-07-17 Thread j o a r
On Jul 17, 2008, at 2:24 PM, Nick Zitzmann wrote: How on earth to I communicate with an object that has been instantiated by Interface Builder??? Declare an IBOutlet pointer connecting an instantiated class to the instantiated object. Then read the instantiated class's header file into I

Re: plist to listview?

2008-07-17 Thread Shawn Erickson
On Thu, Jul 17, 2008 at 2:32 PM, Joeles Baker <[EMAIL PROTECTED]> wrote: > Hi, > > is there any straighforward way to create a listview from a xml plist > source? > (the plist contains one array, which contains several dictionaries. the > dictionaries basically contain my listview columns). Yes. L

Re: Where's the best place for addObserver and removeObserver

2008-07-17 Thread Joan Lluch (casa)
El 17/07/2008, a las 18:13, Jonathan Dann escribió: Hi Joan, As Keary says, removing in -dealloc is probably not the best thing to do as there are a few cases that this can bite you, like if your window controller retains the view controllers, and -dealloc is called on the window control

Re: notification when app is moved

2008-07-17 Thread Uli Kusterer
On 17.07.2008, at 23:13, Jean-Daniel Dupas wrote: Correct me if I'm wrong, but kqueue will not work if you move a folder that contains the applications (and not the app directly). You're right, completely forgot about that. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere.

Re: Chapter 6 Challenge Help!

2008-07-17 Thread Alex Heinz
Hi Eric, I'm also just starting out with Cocoa on Hillegass' book, and I found it helpful to know that solutions to all his challenges are available on the website: http://www.bignerdranch.com/products.shtml Good luck! Alex On Jul 16, 2008, at 8:33 PM, Eric Lee wrote: First of all, I'm' n

Re: just don't get it...

2008-07-17 Thread Michael Ash
On Thu, Jul 17, 2008 at 5:35 PM, j o a r <[EMAIL PROTECTED]> wrote: > > On Jul 17, 2008, at 2:24 PM, Nick Zitzmann wrote: > >>> How on earth to I communicate with an object that has been instantiated >>> by Interface Builder??? >> >> Declare an IBOutlet pointer connecting an instantiated class to t

Re: IBOutlet to same control in different nibs

2008-07-17 Thread Ken Thomases
On Jul 17, 2008, at 11:42 AM, Trygve Inda wrote: I am creating a System Pref Pane that has one window for each physical monitor, very similar to the Displays prefpane. Like the Displays prefpane, on the Main monitor there will be the System Pref window with 4 tabs (A B C D), but on other mo

Documentation on changing dock icon programmatically?

2008-07-17 Thread Diop Mercer
Hi, can anyone point me to documentation that explains how to change the dock icon of a running application? I have created a few .icns files to indicate certain states of the application, for example the normal icon, and then the same icon with a padlock on it. When the lock button is pressed in

Re: Documentation on changing dock icon programmatically?

2008-07-17 Thread Ken Thomases
On Jul 17, 2008, at 7:27 PM, Diop Mercer wrote: Hi, can anyone point me to documentation that explains how to change the dock icon of a running application? +[NSImage imageNamed:] to load the image. -[NSApplication setApplicationIconImage:] to set the dock tile. Cheers, Ken _

Trouble with first Cocoa lesson

2008-07-17 Thread Paul Denlinger
I'm having trouble with my first Cocoa lesson which is at http://www.cocoadevcentral.com/d/learn_cocoa/ Everything works fine until I open up Interface Builder and drag NSTextView over to the Application window. When I try to fix the size of the window, no matter how many times I click on NSTextVie

Re: notification when app is moved

2008-07-17 Thread Charles Srstka
On Jul 17, 2008, at 1:26 PM, Omar Qazi wrote: Sure. Then just update it every time the Application starts. Or do something like // I need to access that one file if (![[NSFileManager defaultFileManager]fileExistsAtPath:savedPath]) { newPath = [[NSBundle mainBundle]pathForResource:@"Whatever"

Re: Trouble with first Cocoa lesson

2008-07-17 Thread Ken Thomases
On Jul 17, 2008, at 7:51 PM, Paul Denlinger wrote: I'm having trouble with my first Cocoa lesson which is at http://www.cocoadevcentral.com/d/learn_cocoa/ Everything works fine until I open up Interface Builder and drag NSTextView over to the Application window. When I try to fix the size of t

  1   2   >