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

2009-12-17 Thread Kai Brüning
Great you found this issue. But according to the log output, it seems that you do have a serious threading-related problem. I wouldn’t ignore this, it may raise its head any time in the future and bite you badly. Good luck Kai On 18.12.2009, at 03:26, PCWiz wrote: > Thanks, will do. > > And

Re: CoreVideo101 Error when porting to new Cocoa project

2009-12-17 Thread Rob Keniger
On 18/12/2009, at 10:41 AM, Travis Kirton wrote: > In XCode I've started a new project, as a cocoa application (i.e. > appdelegate) and copied the headers / files, adapted a new XIB file to > mirror the one available in the tutorial project... Have you added the required frameworks to your target

launching login items in root context

2009-12-17 Thread Arun
Hi All, Is it possible to launch login items in root context? Thanks Arun KA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)list

Re: Diacritics in Thai

2009-12-17 Thread Andrew Farmer
On 17 Dec 2009, at 16:41, Randall Meadows wrote: > If this is such an emergency for you, open up a DTS support incident. Good > luck, you're gonna need it. Alternatively, ignore AppKit and implement the comparison yourself! AppKit does not demand your undying devotion; you're perfectly free to

Re: NSAttributedString fill with gradient

2009-12-17 Thread Gordon Apple
If you capture the entire laid-out text string as a single Bezier path, then you can fill it with whatever you want -- gradient, image, burning fire QTMovie, more text, etc. I've done it and it works. Of course, all of that takes a significant amount of effort. In my case, I already had all the

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Karolis Ramanauskas
Well, I'm in early stages of design. Just playing around, no specification yet, so I'm not too worried. I'm throwing ideas around. Well I'm trying to do the same thing here. I store the rule for expansion of dates, let's say: repeats weekly, tuesdays and thursdays, starts on date x, ends never, e

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Luke Hiesterman
It sounds like you have a design problem if you want potentially large numbers of sections but it isn't easy to calculate the size of said sections. What are you really trying to do? Luke Sent from my iPhone. On Dec 17, 2009, at 8:01 PM, Karolis Ramanauskas wrote: Luke helped me with t

Re: minimize the window

2009-12-17 Thread Daniel Brieck Jr.
Kiran, Why do you want the window minimized? Why not set it hidden and then maybe have some other action make it be visible? Daniel J. Brieck Jr. On Dec 17, 2009, at 8:43 AM, kirankumar wrote: > hi everyone, > > > i am developing an application in that application when i launch the app

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Karolis Ramanauskas
Luke helped me with this a little bit, but, after experimenting, it seams there is more to it. I guess there is still something I do not understand about this. Yes, I can set a huge number of rows. But I want them to be grouped into sections. However, UITableView wants to know exactly how many row

Re: UITableView / iPhone Calendar List View Question

2009-12-17 Thread Karolis Ramanauskas
Thank You. Good to know there is no "magic" there. On Thu, Dec 17, 2009 at 9:18 PM, Luke the Hiesterman wrote: > 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >