Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Gustavo Pizano
Keary Hello On Mar 30, 2010, at 2:18 AM, Keary Suska wrote: > >> Item * newItem = [NSEntityDescription >> insertNewObjectForEntityForName:@"Item" inManagedObjectContext:[self >> managedObjectContext]]; >> ItemXInvoice * newItemXInvoice = [NSEntityDescription >> insertNewObjectForEnti

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-29 Thread Gustavo Pizano
Ben Hello. thanks for the reply, There is something wrong, yes, . On Mar 30, 2010, at 12:01 AM, Ben Trumbull wrote: >> So was digging more into the problem, and realize that the Items are being >> saved the ItemXInvoice are being saved and related to the invoice, but I >> can't acces the invo

Re: How to catch modal window appearance?

2010-03-29 Thread Alexander Bokovikov
On 30.03.2010, at 2:27, Lee Ann Rucker wrote: Well, if you're using runModalForWindow: and relying on it to show the window, it goes away before the method returns, so there is no point in the code after show and before hide. I understand it of course. I told about the window controller cl

Re: How to get wifi information

2010-03-29 Thread Steve Christensen
If you're just playing around with an app that only you will be using, have fun exploring. However, if you're planning to release it through Apple's store, I've read that they will reject your app if it's using private API calls. On Mar 27, 2010, at 1:43 AM, Gavin(??) wrote: I would like

Re: CIFilter and grayscale image

2010-03-29 Thread Graham Cox
On 30/03/2010, at 9:59 AM, paul morel wrote: > Hi, I would like to apply a custom CIFilter to a grayscale image. The problem > is that the kernel of the CIFilter is for RGB images. So the output is a RGB > image but I would like to convert it in grayscale and I have no idea how I > could do th

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Keary Suska
On Mar 29, 2010, at 3:29 PM, Gustavo Pizano wrote: > I have, Invoice < ->> ItemXInvoice << > Invoice, the Array controller I set > up with ItemXInvoice entity, and when I click an add button I do: Whenever possible, manipulate relationships directly. Perhaps you do this, but the code isn't sh

Re: AppleScriptability Meets NSOperation

2010-03-29 Thread Jerry Krinock
On 2010 Mar 29, at 14:30, has wrote: > The Apple Event Manager supports suspend and resume Great tip, has. I searched and found Cocoa Scripting Guide How Cocoa Applications Handle Apple Events Suspending and Resuming Apple Events and Script Commands In there, it looks like -s

CIFilter and grayscale image

2010-03-29 Thread paul morel
Hi, I would like to apply a custom CIFilter to a grayscale image. The problem is that the kernel of the CIFilter is for RGB images. So the output is a RGB image but I would like to convert it in grayscale and I have no idea how I could do that.This would be to display in a IKImageview. If someo

Re: Sending a Cmd-V keystroke

2010-03-29 Thread Jim Graham
Hi Thanks to all who have replied to this. I will try to explain to you why I was looking at this and what I have discovered. In the education establishment where I was employed, one of the departments had an AppleScript that was used to parse the standard format emails received from student

Re: Core Data doesn't save toMany relations please HELP :S

2010-03-29 Thread Ben Trumbull
> So was digging more into the problem, and realize that the Items are being > saved the ItemXInvoice are being saved and related to the invoice, but I > can't acces the invoice detail (ItemXInvoice) immediately I get a console > error: The array controller doesn't appreciate what you're doing

re: Creating NSMappingModel programmatically

2010-03-29 Thread Ben Trumbull
> 'm trying to create an NSMappingModel manually between two models, but it's > not working in that no data gets migrated over (I checked with an SQLite > database browser) to the new store, the tables are just empty. > > The source model has one entity Person with two attributes: name and eyeCo

Re: NSTableView ignores changes to cell's objectValue outside mouse tracking methods?

2010-03-29 Thread Corbin Dunn
On Mar 29, 2010, at 2:05 PM, Sean McBride wrote: > On Fri, 26 Feb 2010 13:20:08 -0800, Corbin Dunn said: > >> Take a look at the "AnimatedTableView" demo app. I added a custom color >> well cell type of thing, and demonstrate how to update values outside >> the normal click+tracking way of doing

Re: AppleScriptability Meets NSOperation

2010-03-29 Thread has
Jerry Krinock wrote: > I do some lengthy, multi-step tasks in an app like this: > > * Wrap each of their dozen or so steps in an NSOperation. > * Set dependencies so that they execute in sequence. > * Add them to a suspended NSOperationQueue. > * Un-suspend the queue. > > If an error occurs, all

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Gustavo Pizano
Keary Hi. On Mar 29, 2010, at 10:22 PM, Keary Suska wrote: > On Mar 29, 2010, at 1:43 PM, Gustavo Pizano wrote: > >> My guess was that when removing the objects form the array controller, these >> were being removed form the MOC, and therefore I couldn't see them in the >> consultation mode,

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Quincey Morris
On Mar 29, 2010, at 13:22, Keary Suska wrote: > On Mar 29, 2010, at 1:43 PM, Gustavo Pizano wrote: > >> My guess was that when removing the objects form the array controller ... >> Now I need to be able to clean the table after saving, otherwise I can't >> create more items unless I restart the

Re: NSTableView ignores changes to cell's objectValue outside mouse tracking methods?

2010-03-29 Thread Sean McBride
On Fri, 26 Feb 2010 13:20:08 -0800, Corbin Dunn said: >Take a look at the "AnimatedTableView" demo app. I added a custom color >well cell type of thing, and demonstrate how to update values outside >the normal click+tracking way of doing things. Last years WWDC talk >covered this too (I think you

CALayer Grid jerky animation

2010-03-29 Thread Mazen M. Abdel-Rahman
Hi All, I have a grid of equal sized CALayers in a parent layer - in my case it's a calendar grid - but it could also be a chess board for example. After adding all the cell (child) layers to the parent layer I iterate through them again to add constraints. The parent layer can have it's widt

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Philip Mötteli
Am 29.03.2010 um 22:14 schrieb Jerry Krinock: > On 2010 Mar 29, at 12:53, Philip Mötteli wrote: > >> Am 29.03.2010 um 21:31 schrieb Jerry Krinock: >> >>> It handles all argument types > > Correction. I forgot one little limitation, per NSInvocation documentation, > "none of the the parameters

AppleScriptability Meets NSOperation

2010-03-29 Thread Jerry Krinock
I do some lengthy, multi-step tasks in an app like this: * Wrap each of their dozen or so steps in an NSOperation. * Set dependencies so that they execute in sequence. * Add them to a suspended NSOperationQueue. * Un-suspend the queue. If an error occurs, all operations in the queue are cancelled

Re: How to catch modal window appearance?

2010-03-29 Thread Lee Ann Rucker
On Mar 27, 2010, at 1:23 AM, Alexander Bokovikov wrote: On 27.03.2010, at 12:48, Ken Thomases wrote: I'm not really sure what you're asking for. A modal window being shown on screen is not something that happens spontaneously _to_ your application, it's something that your application does.

Re: Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Keary Suska
On Mar 29, 2010, at 1:43 PM, Gustavo Pizano wrote: > My guess was that when removing the objects form the array controller, these > were being removed form the MOC, and therefore I couldn't see them in the > consultation mode, only after restarting the app when the MOC fetch again the > data.

Re:Attributes set in NSTextStorage ignored/overridden

2010-03-29 Thread Gordon Apple
Be aware that it your textView is bound to an NSTextStorage (or NSAttributedString) elsewhere, that programmatic changes will not be stored unless someone does a manual edit afterwards. Programmatic changes do not trigger a KVO to make it update, such as what happens with manual edits. I haven't

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Philip Mötteli
Am 29.03.2010 um 21:31 schrieb Jerry Krinock: > On 2010 Mar 29, at 12:06, Philip Mötteli wrote: > >> I never said, it's not possible. But it's a huge task to re-implement a >> general method like this. If you understand, that you have to treat every >> different argument type dynamically. > >

Removing Object form ArrayController without managedObjectContext

2010-03-29 Thread Gustavo Pizano
Hello all. before this email I had a problem with a to-many relationship, that after saving the other view wasn't showing the invoice details, I found the error, but I can't find the solution. So what was happening, was that after saving I was clearing the data of the NSArraycontroller that wa

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Jerry Krinock
On 2010 Mar 29, at 12:06, Philip Mötteli wrote: > I never said, it's not possible. But it's a huge task to re-implement a > general method like this. If you understand, that you have to treat every > different argument type dynamically. Maybe I don't understand, but a couple years ago I wrote

Re: How to get wifi information

2010-03-29 Thread Fritz Anderson
On 27 Mar 2010, at 3:43 AM, Gavin(??) wrote: > I would like to get wifi information, such as wifi on or off, SSID; is there > a way using the iPhone SDK to get them? In Mac OS X, that information would likely be gotten from the System Configuration framework. The framework is present in iPhone

Re: Sending a Cmd-V keystroke

2010-03-29 Thread Chaitanya Pandit
Try [windowObject makeFirstResponder:testField1]; instead of [textField1 becomeFirstResponder]; Thanks, Chaitanya Pandit On Mar 26, 2010, at 5:53 AM, Jim Graham wrote: > Hi > > This is a problem that occurred a few months back in a project. I Never > actually used it in the project but it h

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Philip Mötteli
Am 29.03.2010 um 20:49 schrieb Jerry Krinock: > On 2010 Mar 29, at 11:15, Philip Mötteli wrote: > >> - someMethodWithArgument:(struct *)anArgument >> andSomeOtherArgument:(id)anotherArgument >> { >> // Here I want to create an NSInvocation, capturing the call of this >> method. Something l

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Philip Mötteli
Am 29.03.2010 um 20:36 schrieb Kyle Sluder: > On Mon, Mar 29, 2010 at 11:15 AM, Philip Mötteli > wrote: >> - someMethodWithArgument:(struct *)anArgument >> andSomeOtherArgument:(id)anotherArgument >> { >>// Here I want to create an NSInvocation, capturing the call of this >> method. Som

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Jerry Krinock
On 2010 Mar 29, at 11:15, Philip Mötteli wrote: > - someMethodWithArgument:(struct *)anArgument > andSomeOtherArgument:(id)anotherArgument > { > // Here I want to create an NSInvocation, capturing the call of this > method. Something like: > NSInvocation *anInvocation = [NSInvocatio

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Kyle Sluder
On Mon, Mar 29, 2010 at 11:15 AM, Philip Mötteli wrote: > - someMethodWithArgument:(struct *)anArgument > andSomeOtherArgument:(id)anotherArgument > { >        // Here I want to create an NSInvocation, capturing the call of this > method. Something like: >        NSInvocation *anInvocation = [NS

Re: Custom NSTextView for text annotations

2010-03-29 Thread Douglas Davidson
On Mar 27, 2010, at 6:48 PM, Isaac Alston wrote: > I am currently working on a document reader and annotation program. > This program will allow the user to import text files and annotate > them, both in the margins and by attaching annotations to specific > words. As the cursor is hovered over a

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Philip Mötteli
Hi, Am 29.03.2010 um 18:52 schrieb A.M.: > > On Mar 29, 2010, at 11:07 AM, Philip Mötteli wrote: > >> I need to temporary save the invocation of a method. For that, I just need >> to put the stack frame into an NSInvocation. Unfortunately, Apple has >> removed the -setStackFrame: from NSInvoc

Removing custom properties from ABRecords

2010-03-29 Thread Thorsten Hohage
Hi, while working on some AB integration with my app, I had to recognize, that removing custom properties does simply not work, due to "This method is not implemented." Did anybody came up with a reasonable solution for this issue? Furthermore with a solution that can be used in an ap

NSTextView’s adjustScroll method

2010-03-29 Thread miekl
I'm trying to implement typewriter scrolling in my Cocoa text editor, keeping the insertion point centered vertically in its scrollview. Toward this end, I have subclassed NSClipView to provide a scrollToPointWithoutConstraint method, which scrolls the document to a specified point without calling

building for 64-bit Logic

2010-03-29 Thread Artemiy Pavlov
Hello all! I would like to ask, with the new 64-bit Logic, how do you build a 64- bit plug-in for it? My stuff is all pretty simple, so I thought that setting Architecture in the build options to 32/64 bit Universal should do it. It builds fine and works well, does that mean that the job i

Custom NSTextView for text annotations

2010-03-29 Thread Isaac Alston
Hi, I am currently working on a document reader and annotation program. This program will allow the user to import text files and annotate them, both in the margins and by attaching annotations to specific words. As the cursor is hovered over a word, its annotation will appear in some sort of colo

How to add a DOCTYPE declaration to an NSXMLDocument?

2010-03-29 Thread Bruce Sharpe
I want to add a DOCTYPE declaration to my NSXMLDocument, but can't seem to find the right incantation. The thing that comes closest to working is: NSString *myXMLString = [NSString stringWithFormat:@""]; NSXMLDocument *myDoc = [[NSXMLDocument alloc] initWithXMLString:myXMLString options:0 error:&

How to get wifi information

2010-03-29 Thread Gavin(??)
Dear all, I would like to get wifi information, such as wifi on or off, SSID; is there a way using the iPhone SDK to get them? I can not find them from public API for iPhone SDK 3, is there any private API to do it? Thanks a lot. - GLee ___ Cocoa-dev m

Re: McAfee Internet Security for Mac

2010-03-29 Thread Jens Alfke
On Mar 29, 2010, at 12:10 AM, Arun wrote: Hi All, McAfee has come up with a new security product for Mac. "McAfee Internet Security for Mac 1.0" This has Anti-virus, Desktop firewall and Application protection. Also it features "SiteAdvisor" which works for firefox 3.0.5 and above. I hav

Re: Case sensitive fileName

2010-03-29 Thread Jens Alfke
On Mar 29, 2010, at 6:24 AM, gMail.com wrote: I have finally realized that the API "realpath" traverses the sym links. And I need to not to traverse them. Any other idea? Thanks. This is turning into a filesystem API question … you might get more ideas if you post on the darwin-userlevel

Re:Attributes set in NSTextStorage ignored/overridden (solved)

2010-03-29 Thread Dale Miller
Solved by Gideon King (Thank you!). One of my rookie tricks invoked by working past my bedtime. I had the keys and objects reversed in the attribute dictionaries creations. Dale Miller dalelmil...@comcast.net ___ Cocoa-dev mailing list (Cocoa-dev

Re: Attributes set in NSTextStorage ignored/overridden

2010-03-29 Thread Gideon King
You've got your keys and values the wrong way around in your dictionary. The method name hints at this - object first, then key. On 30/03/2010, at 3:12 AM, Dale Miller wrote: > two attribute dictionaries: > stext = [[NSDictionary alloc]initWithObjectsAndKeys: > NSF

Attributes set in NSTextStorage ignored/overridden

2010-03-29 Thread Dale Miller
I am attempting to display information in an NSTextView. The information is added line-by-line with some lines to be displayed in bold font and underlined, while other lines are to be displayed normally. I add each line as follows: tstor = [textView textStorage]; [tstor beginEditing]; [tstor

"-forwardInvocation:" like NSInvocation creation

2010-03-29 Thread Philip Mötteli
Hello, I need to temporary save the invocation of a method. For that, I just need to put the stack frame into an NSInvocation. Unfortunately, Apple has removed the -setStackFrame: from NSInvocation. Though they still use something like it, because they need it for -forwardInvocation:. Has anyb

Re: Case sensitive fileName

2010-03-29 Thread gMail.com
Hi, I have finally realized that the API "realpath" traverses the sym links. And I need to not to traverse them. Any other idea? Thanks. displayNameAtPath is not suitable because it translates paths like "/Applications" stringByStandardizingPath is not suitable because it could traverse SymLinks.

Re: Class Message

2010-03-29 Thread Quincey Morris
On Mar 29, 2010, at 01:48, Kevin Bracey wrote: > I have a simple class whose job it is to check if it's a first run and create > all the Folders required such as App Support and Logs, check CFBundleVersion > and if different from the last run update any App Support files and reset any > UserDef

-[NSDateFormatter dateFormatFromTemplate:options:locale:] does not work as expected

2010-03-29 Thread Kai Brüning
Hi, I am having problems using -[NSDateFormatter dateFormatFromTemplate:options:locale:] (new in 10.6.). It’s a great API which makes world-savvy custom date formats possible. Unfortunately it does not seem to work. Examples of wrong results are: - Hour format templates like "h a" (12 Hour wit

Class Message

2010-03-29 Thread Kevin Bracey
Hi all, This may be a matter of style... I have a simple class whose job it is to check if it's a first run and create all the Folders required such as App Support and Logs, check CFBundleVersion and if different from the last run update any App Support files and reset any UserDefaults. Th

Re: Class Message

2010-03-29 Thread Sebastian Morsch
Hi Kevin, since you said you don't need instance variables, why not do it with a category of AppDelegate or even NSApplication (not sure about this one, just throwing it in)? Best, Sebastian Am 29.03.2010 um 10:48 schrieb Kevin Bracey: > Hi all, > > This may be a matter of style... > > I

McAfee Internet Security for Mac

2010-03-29 Thread Arun
Hi All, McAfee has come up with a new security product for Mac. "McAfee Internet Security for Mac 1.0" This has Anti-virus, Desktop firewall and Application protection. Also it features "SiteAdvisor" which works for firefox 3.0.5 and above. I have used this product personally and good. Personally