Re: core data: Entity vs Class mode

2009-12-17 Thread Quincey Morris
On Dec 16, 2009, at 22:55, Rainer Standke wrote: > in core data how does it make a difference whether an ObjectController is in > Entity or Class Mode? It may not make any difference at all, unless you cause the NSObjectController to create new objects on your behalf (e.g. if you use "prepares

NSImage support for Windows ico files in 10.4.x?

2009-12-17 Thread Matt Gough
Unfortunately I don't have a 10.4.x capable Mac to try this on myself, so can someone please confirm that NSImage will be able to make use of Windows ico format icons in 10.4.x. Thanks Matt Gough___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

2D grayscale image from an array of floats

2009-12-17 Thread Martin Beroiz
Hello, I'm new in cocoa, and I want to accomplish something in a program i'm developing. I have an array of floats, that is basically a matrix, and I want to display it on a view as a 2D grayscale image, with each pixel in a gray tone proportional the value of that float. So far I have subc

Re: NSUndoManager auto-grouping?

2009-12-17 Thread Scott Squires
First off, for whatever reason my question had been held on to by the moderator. After a few days of no response I re-submitted. What you're seeing I can only assume is the release of those emails unbeknownst to me. And yes, I did read the documentation on the UndoManager. And I have done

Linking xib's

2009-12-17 Thread Charlie Dickman
I'm developing an iPhone app that has 2 xib's; 1 for the controller and 1 for the main window. This structure is based on that recommended in the "Beginning iPhone Development" book. When the didReceiveMemoryWarning notification is sent to the controller I want to invoke a method in the main vi

Distributed Objects communication with a launchd "on-demand" daemon

2009-12-17 Thread Frank Rizzo
My dear fellow Cocoa programmers, I am trying to create a launchd daemon that is started "on-demand" by a client call to a TCP port number and then communicate with the client via Distributed Objects. I am having problems combining the "on-demand" launchd feature with the particular choice of Dis

Re: Sending a non http request

2009-12-17 Thread Mike Abdullah
After a quick look through the RFC, it looks like NSURLConnection won't quite be able to meet your needs out of the box. As I understand it, what you need to happen is to take the ipp:// request and turn it into a modified HTTP request as per the spec. I suggest you read up on NSURLProtocol and

Re: 2D grayscale image from an array of floats

2009-12-17 Thread Graham Cox
On 17/12/2009, at 5:32 AM, Martin Beroiz wrote: > Can anyone please give me any hint on what would be the best approach to this > problem? or may be point me some relevant documentation I might read? I know > nothing about bitmap image representation, so any pointer on that would > appreciated

Re: NSUndoManager auto-grouping?

2009-12-17 Thread Graham Cox
On 17/12/2009, at 7:13 AM, Scott Squires wrote: > Is there a clean method (which I take it is the group method) to make sure > that undo functions aren't automatically grouped based on event cycles? Is > there a recommended way of dealing with UI and async actions relative to the > undomanage

Re: Managed Object with Transformable Attribute (C Struct)

2009-12-17 Thread Richard Somers
On Dec 16, 2009, at 4:39 PM, Melissa J. Turner wrote: I think you're running into a known problem with the binary store not respecting the value transformer name and instead always using the default archiver (NSKeyedArchiver). Bingo! Just checked my application. The xml and sqlite stores us

minimize the window

2009-12-17 Thread kirankumar
hi everyone, i am developing an application in that application when i launch the app, i want to minimize the mainwindow , i use this code in aWakeFromNib, but its not working , can anyone help me plz. [mainwindow setIsMiniaturized:TRUE]; Regarde, kiran

Re: 2D grayscale image from an array of floats

2009-12-17 Thread Martin Beroiz
On Dec 17, 2009, at 6:17 AM, Graham Cox wrote: > > On 17/12/2009, at 5:32 AM, Martin Beroiz wrote: > >> Can anyone please give me any hint on what would be the best approach to >> this problem? or may be point me some relevant documentation I might read? I >> know nothing about bitmap image r

Can't trap uncaught exceptions on Snow Leopard

2009-12-17 Thread Oleg Krupnov
On Leopard, I used to override [NSApp reportException:] method to track all uncaught exceptions that occur in my app. However, I have just discovered that on Snow Leopard, this method never gets called. Instead, the application handles the exception somewhere inside and I only get this message in

Re: minimize the window

2009-12-17 Thread Markus Spoettl
On Dec 17, 2009, at 2:43 PM, kirankumar wrote: > i use this code in aWakeFromNib, but its not working , can anyone help me plz. > [mainwindow setIsMiniaturized:TRUE]; This can have any number of reasons, if you're implementing awakeFromNib the way you spelled it, one would be it's not being call

Re: Can't trap uncaught exceptions on Snow Leopard

2009-12-17 Thread Vera Tkachenko
On 17 груд. 2009, at 16:44, Oleg Krupnov wrote: > On Leopard, I used to override [NSApp reportException:] method to > track all uncaught exceptions that occur in my app. > > ... > > How to work around this and receive the uncaught exceptions somehow? > > Thanks! You can take a look at this

Re: Drawing into myView

2009-12-17 Thread Gregory Weston
>I have a subclass of NSView and I want to draw into it after I retrieve an >Image in an NSImageView. > >I'm trying to set 2 instance variables in the drawRect block of code... > >@property(readwrite) NSRect tRect; >@property (retain, readwrite) NSGraphicsContext*savedContext; >___

Re: NSPredicate Matches

2009-12-17 Thread Keary Suska
On Dec 16, 2009, at 10:18 PM, Gerriet M. Denkmann wrote: > > I have a Core Date entity A which has a to-many ralationship called theBs. > And a Core Date entity B which has a to-many ralationship called theCs. > And a final Core Date entity C which has an NSString attribute called > someString.

narraycontroller sort performance problems

2009-12-17 Thread Richard
hey i have an app that performs searches over a network connection. the app uses core data to manage all the search requests (currently using an in memory store), with an array controller and table view bound to the relevant results. a search query produces up to about 1 results, and they are

Re: ipp help - need advice

2009-12-17 Thread Jeremy Pereira
IPP is an open standard. The spec is available on the Internet. The relevant RFCs are 2910 and 2911. On 15 Dec 2009, at 23:42, Development wrote: > I have constructed a url request to send a png file to a ipp printer to be > printed. The problem is that I get a Bad Request error when I post i

Extending UIButton for multiline & position of textLabel?

2009-12-17 Thread Eric E. Dolecki
I have a custom button where I am supplying the artwork. The artwork for the button has an icon represented on it's background, so I want the textLabel for the custom button (extends UIButton) to offset to the right. What I have so far works for about a second, and then the frame for the textLabel

Re: 2D grayscale image from an array of floats

2009-12-17 Thread Scott Ribe
> Thanks, I'm trying that already. I don't need high performance right now, but > just out of curiosity, what would I use if I wanted ultra high performance? You would use the methods of NSBitmapImageRep that allow you to get/set the entire image buffer at once. -- Scott Ribe scott_r...@killerby

Re: App works when launched from Xcode, not from Finder

2009-12-17 Thread Jeremy Pereira
On 16 Dec 2009, at 04:05, PCWiz wrote: > Here's the screen capture that demonstrates this issue: > > http://www.vimeo.com/8208563 > > This time around, I got a few errors logged in Console: > > *** -[NSRecursiveLock unlock]: lock ( '(null)') > unlocked from thread which did not lock it > ***

Re: Distributed Objects communication with a launchd "on-demand" daemon

2009-12-17 Thread Jens Alfke
On Dec 16, 2009, at 8:05 PM, Frank Rizzo wrote: > I am trying to create a launchd daemon that is started "on-demand" by a > client call to a TCP port number and then communicate with the client via > Distributed Objects. I would advise against this. IMHO it only makes sense to use DO if both sid

Re: Distributed Objects communication with a launchd "on-demand" daemon

2009-12-17 Thread Kyle Sluder
On Dec 16, 2009, at 8:05 PM, Frank Rizzo wrote: I am trying to create a launchd daemon that is started "on-demand" by a client call to a TCP port number and then communicate with the client via Distributed Objects. Experience is telling me to advise you not to use DO. Instead, define

Re: narraycontroller sort performance problems

2009-12-17 Thread Jens Alfke
On Dec 17, 2009, at 7:22 AM, Richard wrote: > i assume this is because with each new search result that is being retrieved > and added to the core data model, the array controller is resorting the > entire collection of search results? can anyone suggest a solution to this > problem? I've run in

Re: App works when launched from Xcode, not from Finder

2009-12-17 Thread Jens Alfke
On Dec 16, 2009, at 10:04 PM, PCWiz wrote: > I'm not using NSLock or NSRecursiveLock directly. I'm using @synchronized on > an object that multiple threads acess, to allow only one thread to access the > object at a time. The fact that the description of the lock is " '(null)'" makes me suspe

Re: narraycontroller sort performance problems

2009-12-17 Thread Mike Abdullah
As with every performance question. Don't "assume", MEASURE. Fire up Instruments and find out what is using up the CPU. On 17 Dec 2009, at 15:22, Richard wrote: > hey > > i have an app that performs searches over a network connection. the app uses > core data to manage all the search requests (

Re: Distributed Objects communication with a launchd "on-demand" daemon

2009-12-17 Thread Jens Alfke
On Dec 17, 2009, at 8:50 AM, Kyle Sluder wrote: > Instead, define some on-the-wire serialization format (plists work in the > simple case) and use that to communicate. #include_plug_for_my_library Seriously, you don't want to reinvent t

Enabling menu items...

2009-12-17 Thread Jim Majure
Hello, I'm having problems enabling the "Edit>Delete" menu item on a custom view. Here's what I have tried: - I have linked the Delete menu item to the "delete:" selector of the First Responder in IB. - I have implemented the "(IBAction) delete: (id) sender;" on my custom view. - I have

NSAttributedString fill with gradient

2009-12-17 Thread Chris Purcell
I've tried setting the gradient as NSForegroundColorAttributeName in the attributes dictionary when creating the string but as I expected that didn't work. How would I go about filling the string with a gradient? Thanks! --Chris ___ Cocoa-dev mailing

Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Hello all. I have a situation. :S. I have the follow entities and relations: Invoice< >> ItemXInvoice<< > Item.. The Entity ItemXInvoice has attributes quantity and totalItemPrice, and the Item has, descr (description) and unitPrice. An Instance of NSArrayController for the entity ItemXInvoice

Re: Enabling menu items...

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 09:24, Jim Majure wrote: > I'm having problems enabling the "Edit>Delete" menu item on a custom view. > Here's what I have tried: > > - I have linked the Delete menu item to the "delete:" selector of the First > Responder in IB. > - I have implemented the "(IBAction) delete

Re: core data: Entity vs Class mode

2009-12-17 Thread Rainer Standke
That's helpful, thanks! Rainer On Dec 17, 2009, at 9:41 , Quincey Morris wrote: On Dec 17, 2009, at 09:05, Rainer Standke wrote: Well, I'm quite new to this, and I am mainly just curious. I am indeed doing both the add: and the prepares content automatically. Seems to work regardless of t

iCal-like display class (week)?

2009-12-17 Thread David Hirsch
Does anybody know of some Cocoa classes that would allow me to mimic the week view shown by iCal? I've looked around for such a thing online without success. Also, in case there are none out there in the wild: I'm looking for some pointers on how to implement this weekly calendar view. Here ar

Re: Enabling menu items...

2009-12-17 Thread Jim Majure
Quincey, I wish that were the case. However, the validateUserInterfaceItem: message isn't being invoked for "delete:" Here's the relevant code. - (BOOL) acceptsFirstResponder { NSLog(@"acceptsFirstResponder"); return YES; } - (IBAction) delete:(id) sender { NSLog(@"de

Re: Linking xib's

2009-12-17 Thread Quincey Morris
On Dec 16, 2009, at 13:20, Charlie Dickman wrote: > When the didReceiveMemoryWarning notification is sent to the controller I > want to invoke a method in the main view. This means linking an IBOutlet in > the controller (which has its own xib) to a method defined in the view (which > has its o

launching application after reboot

2009-12-17 Thread Arun
Hi All, Is it possible to launch an application after restart which has posted an Apple Notification to restart the Mac. Thanks Arun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: NSPredicate Matches

2009-12-17 Thread Gerriet M. Denkmann
On 17 Dec 2009, at 22:20, Keary Suska wrote: > On Dec 16, 2009, at 10:18 PM, Gerriet M. Denkmann wrote: > >> >> I have a Core Date entity A which has a to-many ralationship called theBs. >> And a Core Date entity B which has a to-many ralationship called theCs. >> And a final Core Date entity C

Re: iCal-like display class (week)?

2009-12-17 Thread Jim Majure
Dave, I'm trying to learn Cocoa and to do so I've been writing a time entry application. I've implemented a custom view that is quite similar to what you're talking about. It displays entries similar to iCal and allows you to click/drag to move or resize. It currently only has a single da

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 09:39, Gustavo Pizano wrote: > I have the follow entities and relations: Invoice< >> ItemXInvoice<< > Item.. > The Entity ItemXInvoice has attributes quantity and totalItemPrice, and the > Item has, descr (description) and unitPrice. > > An Instance of NSArrayController for

Re: launching application after reboot

2009-12-17 Thread Kyle Sluder
On Thu, Dec 17, 2009 at 10:03 AM, Arun wrote: > Is it possible to launch an application after restart which has posted an > Apple Notification to restart the Mac. Why?! If the user wants to start your program, they will start your program. If you have a good reason for this, please read System S

Re: Enabling menu items...

2009-12-17 Thread Kyle Sluder
On Thu, Dec 17, 2009 at 9:57 AM, Jim Majure wrote: > I wish that were the case. However, the validateUserInterfaceItem: message > isn't being invoked for "delete:" Are you sure the menu on which the Delete item is located has its "Auto Enables Items" (aka -autoenablesItems) setting checked in IB?

Re: iCal-like display class (week)?

2009-12-17 Thread Rick Langschultz
Try looking at LRCalendarView Sent from my iPhone On Dec 17, 2009, at 12:05 PM, Jim Majure wrote: Dave, I'm trying to learn Cocoa and to do so I've been writing a time entry application. I've implemented a custom view that is quite similar to what you're talking about. It displays entrie

Re: iCal-like display class (week)?

2009-12-17 Thread David Hirsch
Hi Rick- That's a monthly calendar - I need a *weekly* calendar. Thanks though. -Dave On Dec 17, 2009, at 10:38 AM, Rick Langschultz wrote: > Try looking at LRCalendarView > > Sent from my iPhone > > On Dec 17, 2009, at 12:05 PM, Jim Majure wrote: > >> Dave, >> >> I'm trying to learn Cocoa a

Re: Enabling menu items...

2009-12-17 Thread Jim Majure
The "Auto Enables Items" is checked. When I control-click the menu item in IB, under "Sent Actions" it shows "delete:" (with the colon) linked to "First Responder". (The "Cut" menu item is configured exactly the same way in the same drop down menu (with a different action) and it works.) I

Re: iCal-like display class (week)?

2009-12-17 Thread Eric E. Dolecki
Man it would be nice to have something like this for the iPhone. On Thu, Dec 17, 2009 at 1:40 PM, David Hirsch wrote: > Hi Rick- > That's a monthly calendar - I need a *weekly* calendar. > Thanks though. > -Dave > > On Dec 17, 2009, at 10:38 AM, Rick Langschultz wrote: > > > Try looking at LRCal

Re: Enabling menu items...

2009-12-17 Thread Quincey Morris
[Reposted to list after being misdirected. Slightly edited from the original.] On Dec 17, 2009, at 09:57, Jim Majure wrote: > I wish that were the case. However, the validateUserInterfaceItem: message > isn't being invoked for "delete:" > > Here's the relevant code. > > - (BOOL) acceptsFirstRe

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Quincey thanks for the reply. In fact what I want is to allow the user to, create new Items, and use Exiting ones, in any case a new ItemXInvoice must be created somehose,...For the second option I had in mind, that once I select an exiting Item, then I click an "Use selected" button, this one

Call Cocoa from C++

2009-12-17 Thread David Blanton
I searched the archive .. no hits. The question: How / Can I store a pointer to an obj-c object in a C++ class and then send messages to the obj-c object from C++? Somethng like: class MyClass { public: void* objcptr; // ptr to my obj-c object void CallOBJC(void); }

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 11:07, Gustavo Pizano wrote: > In fact what I want is to allow the user to, create new Items, and use > Exiting ones, in any case a new ItemXInvoice must be created somehose,...For > the second option I had in mind, that once I select an exiting Item, then I > click an "Use

Re: Call Cocoa from C++

2009-12-17 Thread Jens Alfke
On Dec 17, 2009, at 11:16 AM, David Blanton wrote: > How / Can I store a pointer to an obj-c object in a C++ class and then send > messages to the obj-c object from C++? Use Objective-C++. Just change the extension of the source file to ".mm". —Jens_

Re: Call Cocoa from C++

2009-12-17 Thread Kyle Sluder
On Thu, Dec 17, 2009 at 11:16 AM, David Blanton wrote: > I searched the archive .. no hits. You mustn't have searched the documentation. Or Google, for that matter. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocCPlusPlus.html --Kyle Sluder _

Re: launching application after reboot

2009-12-17 Thread Jens Alfke
On Dec 17, 2009, at 10:26 AM, Kyle Sluder wrote: > Why?! If the user wants to start your program, they will start your program. It could be necessary for some sort of installer that needs to restart the OS and then needs to run something afterwards. (Some of Apple's firmware updaters do this.)

Re: Call Cocoa from C++

2009-12-17 Thread Randall Meadows
On Dec 17, 2009, at 12:16 PM, David Blanton wrote: > The question: > > How / Can I store a pointer to an obj-c object in a C++ class and then send > messages to the obj-c object from C++? > > Somethng like: > > class MyClass > { > public: > void* objcptr; // ptr to my obj-c object >

Re: Diacritics in Thai

2009-12-17 Thread David M. Cotter
this is kindof important, an anyone at apple weigh in on this? On Dec 14, 2009, at 2:28 AM, Gerriet M. Denkmann wrote: > > When I use rangeOfString: options withNSDiacriticInsensitiveSearch > not only the tone marks are ignored, but also some vowels. > > Same problem with NSPredicate

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Yeah I mean, the "Use Selected Item" button will be bound to a IBAction which will create a new NSEntityDescription of ItemXInvoice and then relate it to the Selected ITem.. now I have its a doubt about the awakeFromInsert overridden method in the ItemXInvoice ... this wil give me trouble if I w

Re: narraycontroller sort performance problems

2009-12-17 Thread Richard
jens, this sounds reasonable, i will give it a try. mike, i did give it a shot in instruments, comparing the same search with and without sorting. i'm not really sure what to make of the results however. when sorting is enabled, nearly all the execution time is taken up with [NSArrayController set

Re: Call Cocoa from C++

2009-12-17 Thread Jens Alfke
On Dec 17, 2009, at 11:24 AM, Randall Meadows wrote: > Just like that. Put this into a .mm file, and it'll compile as > Objective-C++. You'll get a compiler warning that objcptr may not respond to > updateText, which you can eliminate by casting objcptr to the appropriate > class. Or better

Re: launching application after reboot

2009-12-17 Thread Greg Guerin
Jens Alfke wrote: The right thing to do is to add the app as a login item, and then when the app launches, have it remove itself. Maybe a one-shot LaunchAgent with the RunAtLoad key. It should also remove itself. man launchd.plist -- GG ___

Re: Call Cocoa from C++

2009-12-17 Thread David Blanton
Thanks all ! I need Bing lessons from MS for my searches , I guess! db On Dec 17, 2009, at 12:24 PM, Kyle Sluder wrote: On Thu, Dec 17, 2009 at 11:16 AM, David Blanton wrote: I searched the archive .. no hits. You mustn't have searched the documentation. Or Google, for that matter. ht

Re: launching application after reboot

2009-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 2009 à 20:24, Jens Alfke a écrit : > > On Dec 17, 2009, at 10:26 AM, Kyle Sluder wrote: > >> Why?! If the user wants to start your program, they will start your program. > > It could be necessary for some sort of installer that needs to restart the OS > and then needs to run someth

Re: Diacritics in Thai

2009-12-17 Thread David Duncan
The official way to get someone from Apple to weigh in on an issue is to file a bug, which is the proper route to take if you believe the behavior to be incorrect. On Dec 17, 2009, at 11:30 AM, David M. Cotter wrote: > this is kindof important, an anyone at apple weigh in on this? > > On Dec 1

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Sorry I didn't read the whole mail. > > You may want to keep thinking about the interface, though. What if you want > to add an item (ItemXInvoice) to *this* invoice based on an Item that's in a > different invoice (and hence not displayed)? Seems to me the hard part here > is designing the in

Re: launching application after reboot

2009-12-17 Thread Kyle Sluder
On Thu, Dec 17, 2009 at 11:24 AM, Jens Alfke wrote: > Um, he said "run an _application_". That's not the appropriate documentation > for that. The section "Creating a Startup Item" in that document is exactly what the doctor ordered. --Kyle Sluder ___

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 11:58, Gustavo Pizano wrote: > In IB, I have 2 NSArrayControllers, one for the NSTableView that will add > Items (ItemXInvoice) without prefetching, and one that will display a drop > down button with the description of the existing Items (prefetching the > existing ones), s

Re: launching application after reboot

2009-12-17 Thread Kyle Sluder
On Thu, Dec 17, 2009 at 12:05 PM, Kyle Sluder wrote: > The section "Creating a Startup Item" in that document is exactly what > the doctor ordered. Oh, will you look at that! I confused "Startup Item" for "Login Item." Definitely do NOT use startup items. My mistake, and Jens was right for poin

understanding the column of a double clicking into a table view

2009-12-17 Thread Stephane Huaulme
to handle double clicking, i bind the double click target of the table view to my app controller using a method named doubleClick. inside doubleClick, i look at what row is currently selected, and i know which one the user clicked in. how can i understand which column did the user double click i

Re: Enabling menu items...

2009-12-17 Thread Jim Majure
I tried your suggestion of changing the action to "myDelete:", but it still doesn't work. Something else responding to the action first seems like a possible problem. I added "myDelete:" to the First Responder in IB, then tied the "Delete" menu item to it using click-drag. I changed the name

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Y On Dec 17, 2009, at 9:10 PM, Quincey Morris wrote: > On Dec 17, 2009, at 11:58, Gustavo Pizano wrote: > >> In IB, I have 2 NSArrayControllers, one for the NSTableView that will add >> Items (ItemXInvoice) without prefetching, and one that will display a drop >> down button with the descriptio

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 12:24, Gustavo Pizano wrote: > I was checking the documentation, just in case, Im not saying I will do it > this way, but jsut to keep it in mind... Subclassing NSArrayController, and > overriding add: method, I can get the entityName form the NSObjectController > (Parent o

Re: narraycontroller sort performance problems

2009-12-17 Thread Mike Abdullah
As with every performance question. Don't "assume", MEASURE. Fire up Instruments and find out what is using up the CPU. On 17 Dec 2009, at 15:22, Richard wrote: > hey > > i have an app that performs searches over a network connection. the app uses > core data to manage all the search requests (

Re: Enabling menu items...

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 12:20, Jim Majure wrote: > I tried your suggestion of changing the action to "myDelete:", but it still > doesn't work. Something else responding to the action first seems like a > possible problem. > I added "myDelete:" to the First Responder in IB, then tied the "Delete" men

Re: understanding the column of a double clicking into a table view

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 12:20, Stephane Huaulme wrote: > to handle double clicking, i bind the double click target of the table view > to my app controller using a method named doubleClick. > inside doubleClick, i look at what row is currently selected, and i know > which one the user clicked in. >

Re: Linking xib's

2009-12-17 Thread Charlie Dickman
OK. From the controller I want to invoke a method in the view. In the controller I declare an id called myView... id myView; In the Controller's "didReceiveMemoryWarning I want to call a method in the view thusly... [myView cleanMemory]; The question is how does the id myView get the ad

Re: understanding the column of a double clicking into a table view

2009-12-17 Thread Kyle Sluder
On Thu, Dec 17, 2009 at 12:20 PM, Stephane Huaulme wrote: > inside doubleClick, i look at what row is currently selected, and i know > which one the user clicked in. > > how can i understand which column did the user double click in? NSTableView has methods for this purpose: -clickedRow and -cli

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Ah ok.. Thanks a lot once again.. very helpful. On Dec 17, 2009, at 9:32 PM, Quincey Morris wrote: > On Dec 17, 2009, at 12:24, Gustavo Pizano wrote: > >> I was checking the documentation, just in case, Im not saying I will do it >> this way, but jsut to keep it in mind... Subclassing NSArra

Re: Linking xib's

2009-12-17 Thread Shawn Erickson
On Thu, Dec 17, 2009 at 12:46 PM, Charlie Dickman <3tothe...@comcast.net> wrote: > The question is how do I provide this linkage when the controller and the > view are in _different_ xib's? Who is the "owner" (aka loader) of the two xibs? If it is the same owning object then just hook up the out

Re: Linking xib's

2009-12-17 Thread Charlie Dickman
I have discovered the answer. The controller knows about the view without me doing any linkage. It is referenced using [self view] in the controller. On Dec 17, 2009, at 4:07 PM, Shawn Erickson wrote: > On Thu, Dec 17, 2009 at 12:46 PM, Charlie Dickman <3tothe...@comcast.net> > wrote: > >> Th

Re: ImageAndTextCell still the way to go for icons in outline views?

2009-12-17 Thread Benjamin Stiglitz
>> The old ImageAndTextCell doesn’t handle the background style, and that alone >> makes a modified version of the ATImageTextCell worth using. > > What do you mean by 'the background style'? I don't need the cell to draw a > background at all; it's in an outline view. Take a look at the backgr

Re: NSPredicate Matches

2009-12-17 Thread Keary Suska
On Dec 17, 2009, at 11:03 AM, Gerriet M. Denkmann wrote: > The problem: the first time it is used, this is very slow (about 20 seconds). > There are 30 000 A entities, each have on average 2 B entities, each of these > have about half a dozen C entities. > In these 20 seconds the RSIZE increases

Re: narraycontroller sort performance problems

2009-12-17 Thread Mike Abdullah
Aha, now we're talking! So the problem is that after ever change to your model, the controller must rearrange its content to match. It knows the change is needed because it receives a Key-Value Observing notification of the change. It's got no way to know that more changes are about to happen a

Re: Call Cocoa from C++

2009-12-17 Thread Sean McBride
On 12/17/09 12:24 PM, Randall Meadows said: >> How / Can I store a pointer to an obj-c object in a C++ class and then >send messages to the obj-c object from C++? >> >> Somethng like: >> >> class MyClass >> { >> public: >> void* objcptr; // ptr to my obj-c object >> void CallOBJC(voi

Re: App works when launched from Xcode, not from Finder

2009-12-17 Thread Greg Parker
On Dec 17, 2009, at 8:55 AM, Jens Alfke wrote: > On Dec 16, 2009, at 10:04 PM, PCWiz wrote: >> I'm not using NSLock or NSRecursiveLock directly. I'm using @synchronized on >> an object that multiple threads acess, to allow only one thread to access >> the object at a time. > > The fact that the

Re: NSImage support for Windows ico files in 10.4.x?

2009-12-17 Thread Ken Thomases
On Dec 17, 2009, at 3:56 AM, Matt Gough wrote: > Unfortunately I don't have a 10.4.x capable Mac to try this on myself, so can > someone please confirm that NSImage will be able to make use of Windows ico > format icons in 10.4.x. It can read traditional .ICO files. Our product makes use of th

Re: Can't trap uncaught exceptions on Snow Leopard

2009-12-17 Thread Ken Thomases
On Dec 17, 2009, at 8:41 AM, Oleg Krupnov wrote: > On Leopard, I used to override [NSApp reportException:] method to > track all uncaught exceptions that occur in my app. > > However, I have just discovered that on Snow Leopard, this method > never gets called. Instead, the application handles th

Re: NSAttributedString fill with gradient

2009-12-17 Thread Graham Cox
On 18/12/2009, at 4:31 AM, Chris Purcell wrote: > I've tried setting the gradient as NSForegroundColorAttributeName in the > attributes dictionary when creating the string but as I expected that didn't > work. How would I go about filling the string with a gradient? Why would you even expect t

Re: launching application after reboot

2009-12-17 Thread Ken Thomases
On Dec 17, 2009, at 1:43 PM, Jean-Daniel Dupas wrote: > Le 17 déc. 2009 à 20:24, Jens Alfke a écrit : > >> The right thing to do is to add the app as a login item, and then when the >> app launches, have it remove itself. (Is there an official API yet for >> manipulating login items, or do you

Re: Diacritics in Thai

2009-12-17 Thread David M. Cotter
>> When I use rangeOfString: options with NSDiacriticInsensitiveSearch >> not only the tone marks are ignored, but also some vowels. >> >> Same problem with NSPredicate "someKey =[d] someValue". >> >> It is true that in unicode-speak both the tone marks and the ignored vowels >> are cat

Re: Diacritics in Thai

2009-12-17 Thread Graham Cox
On 18/12/2009, at 6:30 AM, David M. Cotter wrote: > this is kindof important, an anyone at apple weigh in on this? Perhaps they will, but you do realise that this isn't an official support channel? It's a self-help group that sometimes is favoured with someone from Apple chipping in a bit. I

CoreVideo101 Error when porting to new Cocoa project

2009-12-17 Thread Travis Kirton
Hi, I'm working with the Core Video frameworks. I've taken the QTCoreVideo101 example (available from dev.apple) and modified it slightly (removing some code that I don't need). Instead of building off of this stripped project, I want to start a new project and incorporate the code I've adapted.

Re: Diacritics in Thai

2009-12-17 Thread Randall Meadows
On Dec 17, 2009, at 5:30 PM, David M. Cotter wrote: >>> When I use rangeOfString: options with NSDiacriticInsensitiveSearch >>> not only the tone marks are ignored, but also some vowels. >>> >>> Same problem with NSPredicate "someKey =[d] someValue". >>> >>> It is true that in unicode-sp

NSWindow's -orderOut: unreliable with Spaces?

2009-12-17 Thread Keith Blount
Hello, I'm not sure if this is intended behaviour or a bug, but does anyone know why NSWindow's -orderOut: is unreliable when used with Spaces? I have a loading panel that appears when large projects are opened, and I was closing this panel using -orderOut:. However, it turns out that using -o

Calculating the max value for a core data attribute

2009-12-17 Thread Darren Wheatley
Hi, I need to find out the maximum value of an attribute of a core data entity. I'm still in the Cocoa learning curve, and this is a simple test app that I'm using to learn. The app imports fortunes from a text file and displays a table on the screen. The imports are done in a separate, back

Re: App works when launched from Xcode, not from Finder

2009-12-17 Thread PCWiz
Thanks, will do. And regarding Jeremy's note about the 2 libraries can't be loaded, those are Input Manager plugins that have nothing to do with my app. But I'm happy to say that I eventually found the cause of my problem. One of the frameworks I was using was compiled using "i386 ppc" set as t

UITableView / iPhone Calendar List View Question

2009-12-17 Thread Karolis Ramanauskas
Dear developers, I do not have an iPhone, so I may be wrong since Calendar is not available on the simulator. UITableView needs to know the number of sections and rows for each section beforehand. However, Calendar allows repeating events that do not end, correct? If this is not correct, then my q

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Luke the Hiesterman
You can tell the tableView that you have a very large number of rows. tableView:cellForRowAtIndexPath: is only called when a cell will actually come into view, so even though you claim your table to be very large, not all cells are loaded immediately. Luke On Dec 17, 2009, at 7:01 PM, Karo

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Karolis Ramanauskas
On Thu, Dec 17, 2009 at 9:05 PM, Luke the Hiesterman wrote: > You can tell the tableView that you have a very large number of rows. > tableView:cellForRowAtIndexPath: is only called when a cell will actually > come into view, so even though you claim your table to be very large, not > all cells ar

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Luke the Hiesterman
Yes, eventually the calendar list view will come to an end. I'm able to hit that point easily by scrolling fast for several seconds on my phone. Luke On Dec 17, 2009, at 7:11 PM, Karolis Ramanauskas wrote: On Thu, Dec 17, 2009 at 9:05 PM, Luke the Hiesterman > wrote: You can tell the tableV

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Karolis Ramanauskas
On Thu, Dec 17, 2009 at 9:13 PM, Luke the Hiesterman wrote: > Yes, eventually the calendar list view will come to an end. I'm able to hit > that point easily by scrolling fast for several seconds on my phone. > > Luke > Ah, I see! So it's all an illusion! ;) Thanks. Just to confirm, you have repe

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Luke the Hiesterman
I don't know at what point the calendar is setup to end, but the principle is there. Calendar doesn't even go all that far with it. You could easily declare 30k rows and there's no reason a user should ever get through that many rows. Luke On Dec 17, 2009, at 7:15 PM, Karolis Ramanauskas w

  1   2   >