Re: Intercepting cocoa/quartz/opengl Draw command.

2010-12-14 Thread Nick Zitzmann
On Dec 14, 2010, at 8:46 AM, manoj wrote: > Hi All, >I am developing application that allows remote access to other > applications (running on different machines). The idea is to make give users > transparent access to certain applications. > To have this , I am trying to interce

Re: iOS multiple text colors in an editable text field

2010-12-14 Thread Jayson Adams
On Dec 14, 2010, at 12:40 PM, Matt Neuburg wrote: > On Sun, 12 Dec 2010 14:05:38 +1100, BareFeetWare > said: >> 1. Apple Mail. If you reply to a messages containing multi-colored text, you >> can edit that text. >> >> So my question is, how do they do it? > > Okay, I see now that there's a U

Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-14 Thread Devarshi Kulshreshtha
Hi all, I am trying a core-data sample application, from Cocoa Programming - Aaron Hillegass. In it there is an entity Car, with following properties: 1. condition - Int 16 2. datePurchased - Date 3. makeModel - String 4. onSpecial - Boolean 5. photo - Binary 6. price - Decimal There are certai

Re: Building a GUI for Terminal Applications

2010-12-14 Thread Andy Lee
On Dec 14, 2010, at 11:12 PM, Conrad Shultz wrote: > For navigating Apple's doc structure I find that Google's scoping > feature is quite helpful: > > http://www.google.com/search?q=moriarty+site%3Adeveloper.apple.com If you don't mind giving up some space in your browser window, the "ADC Search"

Re: Using bindings to lessen amount of code

2010-12-14 Thread davelist
On Dec 13, 2010, at 12:25 PM, Paul Johnson wrote: > I want to obtain the value at a particular row and column in a table. > > > I implemented the datasource protocol method > tableView:objectValueForTableVColumn:row: > > > In this method I return [[self.arrangedObjects valueForKey:@"symbol"]

Re: Call for People: CocoaHeads Silicon Valley

2010-12-14 Thread Dave DeLong
Probably better than sending me an email would be to fill out this info form: https://spreadsheets.google.com/viewform?formkey=dGJ6bU5sVUVYaTBCbDRhbmRGYzhXa2c6MQ&ifq It's easier to organize info that way. Thanks! (and sorry for the noise) Dave On Dec 14, 2010, at 7:27 PM, Dave DeLong wrote:

Re: Building a GUI for Terminal Applications

2010-12-14 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/14/10 7:43 AM, Raphael Klein wrote: > There was a tutorial located at this url: > http://developer.apple.com/samplecode/Sample_Code/Cocoa/Moriarity.htm > But I can not find it anymore. > Does anybody knows where it is located now. For navigat

Moderator - Reminder ALL first posts are moderated

2010-12-14 Thread Scott Anguish
I wanted to remind all new posters (including apple.com addresses) that because of previous abuse, all first time postings by users are moderated. Sometimes more than one are. Once it’s obvious that they aren’t spam, people who have been removed from the list, and all sorts of other things, the

Re: cannot access __block variable of array type inside block

2010-12-14 Thread Dave Zarzycki
Jonathon, This is being tracked by our internal bug number 8590846. I'm told that the workaround is to place the array within a structure: __block struct { double result[COUNT]; } results; davez On Dec 14, 2010, at 7:30 PM, Jonathon Kuo wrote: > I'm trying to learn GCD and reading

Intercepting cocoa/quartz/opengl Draw command.

2010-12-14 Thread manoj
Hi All, I am developing application that allows remote access to other applications (running on different machines). The idea is to make give users transparent access to certain applications. To have this , I am trying to intercept cocoa/quartz/opengl draw command and reproduce th

Building a GUI for Terminal Applications

2010-12-14 Thread Raphael Klein
I'm working on an App to execute rsync in background. The copying process works fine, now I want to output the progress of the download! NSPipe *pipe = [[NSPipe alloc] init]; [task setStandardOutput:pipe]; [task setStandardError:pipe]; [task setStandardInput:[NSPipe NSFileHandle *readHandle =

Re: cannot access __block variable of array type inside block

2010-12-14 Thread Jonathon Kuo
Thanks, Dave! That works, though I don't understand why... On Dec 14, 2010, at 7:35 PM, Dave Zarzycki wrote: > Jonathon, > > This is being tracked by our internal bug number 8590846. I'm told that the > workaround is to place the array within a structure: > > __block struct { > double

cannot access __block variable of array type inside block

2010-12-14 Thread Jonathon Kuo
I'm trying to learn GCD and reading http://developer.apple.com/library/mac/#featuredarticles/BlocksGCD/index.html But the Global Concurrent Queues example in that document (last updated 2010-11-10) doesn't even compile. It complains about accessing array 'result' from within the block: #define

Call for People: CocoaHeads Silicon Valley

2010-12-14 Thread Dave DeLong
Hi everyone, This is a question, but more of an announcement. We're going to try and get the Silicon Valley CocoaHeads group up and running again, with our first meeting being January 13th at 7pm. For those of you who are interested in either attending and/or presenting, please email me off-l

Re: Rotated and scaled CALayer

2010-12-14 Thread Vincent Habchi
Hi Ramas, > No I hadn't. I not quite sure which action (and how) I could use in > addition with Core Animation. I need (near) real-time drawing for > scaling and rotating. So dealing with pixels data for every update is > quite expensive. Unless I am missing something? It is written in the basic

Re: Core Data: Error while saving. Multiple validation errors occurred.

2010-12-14 Thread vincent habchi
Le 14 déc. 2010 à 20:21, "Ayers, Joseph" a écrit : >> I changed a couple attributes of three properties in my data model. Even if >> I trash the previous store, I get the error: >> Error while saving >> Multiple validation errors occurred. >> >> Any idea what is causing this or where to look f

Re: Core Data: Error while saving. Multiple validation errors occurred. SOLVED

2010-12-14 Thread Ayers, Joseph
Indeed, changing them to optional solved the problem Many thanks, Joseph Ayers On Dec 14, 2010, at 6:22 PM, Nick Zitzmann wrote: > > On Dec 14, 2010, at 4:18 PM, Ayers, Joseph wrote: > >> When I log Userinfo from the save operation, >> NSError *error = nil;

Re: Core Data: Error while saving. Multiple validation errors occurred.

2010-12-14 Thread Nick Zitzmann
On Dec 14, 2010, at 4:18 PM, Ayers, Joseph wrote: > When I log Userinfo from the save operation, >NSError *error = nil; //Now > try saving the data >if (![[self managedObjectContext] save: &error]) { > NSLog(@"Unresolved error %@, %@", erro

Re: Core Data: Error while saving. Multiple validation errors occurred.

2010-12-14 Thread Ayers, Joseph
When I log Userinfo from the save operation, NSError *error = nil; //Now try saving the data if (![[self managedObjectContext] save: &error]) { NSLog(@"Unresolved error %@, %@", error, [error userInfo]); I get: 2010-12-14 17:40:19.829 Robo

Re: - resolveInstanceMethod:

2010-12-14 Thread Ariel Feinerman
Thank you, this is well so I can implement Cocoa methods from 10.6 and if app is running on earlier version one will be resolved otherwise there will be nothing 2010/12/14 Kyle Sluder > On Tue, Dec 14, 2010 at 1:15 PM, Ariel Feinerman > wrote: > > Hi, > > > > will its selector be in resolveInst

Re: How to read a text file over a network

2010-12-14 Thread Dave Zwerdling
You should check out NSFileManager to see if you can simplify your read methods - specifically the contentsAtPath: method. Then decode the data from the file using the appropriate encoding. Once you've figured out what the URI for the file is, you can use NSFileManager again to fetch it, using an

Re: - resolveInstanceMethod:

2010-12-14 Thread Kyle Sluder
On Tue, Dec 14, 2010 at 1:15 PM, Ariel Feinerman wrote: > Hi, > > will its selector be in resolveInstanceMethod:, if method exist? I want to > implement some Cocoa methods for earlier  ; Are you asking if -resolveInstanceMethod: is called for methods that have implementations at compile time? If

- resolveInstanceMethod:

2010-12-14 Thread Ariel Feinerman
Hi, will its selector be in resolveInstanceMethod:, if method exist? I want to implement some Cocoa methods for earlier ; -- best regards Ariel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

UITextField in UIScrollView

2010-12-14 Thread Phillip Mills
I have a number of UITextField objects inside a (subclass of) UIView, which is the content view for a (subclass of) UIScrollView. When the user types into a text field, I dynamically change its size if necessary and reset the content size of the content view. When needed, I also scroll so that

Re: iOS multiple text colors in an editable text field

2010-12-14 Thread Matt Neuburg
On Sun, 12 Dec 2010 14:05:38 +1100, BareFeetWare said: > 1. Apple Mail. If you reply to a messages containing multi-colored text, you > can edit that text. > > So my question is, how do they do it? Okay, I see now that there's a UITextInput protocol allowing you to design your own widgets tha

Re: Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread Gustavo Pizano
Thanks anyway.. ;) On Dec 14, 2010, at 9:34 PM, David Duncan wrote: > On Dec 14, 2010, at 12:31 PM, Gustavo Pizano wrote: > >> I have a view within a NavigationViewController that display a list of >> picked songs, so at first run this list is empty, when the user clicks the >> add songs, I pu

Re: Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread Gustavo Pizano
Yep.. I didn't read the header part before :S. On Dec 14, 2010, at 9:34 PM, David Duncan wrote: > On Dec 14, 2010, at 12:31 PM, Gustavo Pizano wrote: > >> I have a view within a NavigationViewController that display a list of >> picked songs, so at first run this list is empty, when the user c

Re: Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread Gustavo Pizano
Ok I found my answer in the docs I doesn't support landscape mode.. G. On Dec 14, 2010, at 9:31 PM, Gustavo Pizano wrote: > Hello all. > > Im having some troubles here, > > I have a view within a NavigationViewController that display a list of > picked songs, so at first run this list is em

Re: Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread David Duncan
On Dec 14, 2010, at 12:31 PM, Gustavo Pizano wrote: > I have a view within a NavigationViewController that display a list of > picked songs, so at first run this list is empty, when the user clicks the > add songs, I push a MPMediaPickerController into the > navigationViewController, but the

Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread Gustavo Pizano
Hello all. Im having some troubles here, I have a view within a NavigationViewController that display a list of picked songs, so at first run this list is empty, when the user clicks the add songs, I push a MPMediaPickerController into the navigationViewController, but the size of the MPMed

Re: Core Data: Error while saving. Multiple validation errors occurred.

2010-12-14 Thread Nick Zitzmann
On Dec 14, 2010, at 12:21 PM, Ayers, Joseph wrote: >> I changed a couple attributes of three properties in my data model. Even if >> I trash the previous store, I get the error: >> Error while saving >> Multiple validation errors occurred. >> >> Any idea what is causing this Usually it happen

Core Data: Error while saving. Multiple validation errors occurred.

2010-12-14 Thread Ayers, Joseph
> I changed a couple attributes of three properties in my data model. Even if I > trash the previous store, I get the error: > Error while saving > Multiple validation errors occurred. > > Any idea what is causing this or where to look for a fix? > > Thanks, > Joseph ___

Re: Intercepting cocoa/quartz/opengl Draw command.

2010-12-14 Thread Kyle Sluder
Please don't cross-post. --Kyle Sluder On Tue, Dec 14, 2010 at 7:46 AM, manoj wrote: > Hi All, >         I am developing application that  allows remote access to other > applications (running on different machines). The idea is to make give users > transparent access to certain applications. >

Re: convert CFRange to NSRange?

2010-12-14 Thread Scott Ribe
On Dec 14, 2010, at 9:58 AM, Matt Neuburg wrote: > I recognize that the conversion is not simple, but that is exactly why I am > surprised that the frameworks do not supply a utility conversion method. If I > were to write my own I would surely get it wrong. The size & layout of the members is

Re: assign property behaves differently from simple instance variable???

2010-12-14 Thread Kyle Sluder
On Dec 14, 2010, at 9:01 AM, Matt Neuburg wrote: > > Doesn't anyone besides me want to evince any outrage that this can happen? I > mean, sheesh, if I wanted to live in a world where the namespace was polluted > with secret undocumented terminology I could collide with accidentally, I > could

Re: assign property behaves differently from simple instance variable???

2010-12-14 Thread Dave Keck
>>Hmm, also, it appears that UIResponder has some undocumented methods >>-firstResponder and -_firstResponder, which your synthesized property would >>also interfere with. > > Doubtless. But how would I have discovered this? I would have implemented -firstResponder and set a breakpoint to see wh

Re: assign property behaves differently from simple instance variable???

2010-12-14 Thread Matt Neuburg
On Dec 14, 2010, at 10:01 AM, Keary Suska wrote: > On Dec 13, 2010, at 12:01 PM, Matt Neuburg wrote: > >> self->firstResponder = tf; > > Well, the proper syntax is self.firstResponder . Using the deference is > probably a back-door way to access the class struct. Unless I misunderstand > so

Re: assign property behaves differently from simple instance variable???

2010-12-14 Thread David Duncan
On Dec 14, 2010, at 10:01 AM, Keary Suska wrote: > On Dec 13, 2010, at 12:01 PM, Matt Neuburg wrote: > >> self->firstResponder = tf; > > Well, the proper syntax is self.firstResponder . Using the deference is > probably a back-door way to access the class struct. Unless I misunderstand > som

Re: assign property behaves differently from simple instance variable???

2010-12-14 Thread Keary Suska
On Dec 13, 2010, at 12:01 PM, Matt Neuburg wrote: >self->firstResponder = tf; Well, the proper syntax is self.firstResponder . Using the deference is probably a back-door way to access the class struct. Unless I misunderstand something Keary Suska Esoteritech, Inc. "Demystifying techno

Re: assign property behaves differently from simple instance variable???

2010-12-14 Thread Matt Neuburg
On Mon, 13 Dec 2010 11:31:38 -0800, Wim Lewis said: > >On 13 Dec 2010, at 11:01 AM, Matt Neuburg wrote: >> How can this seemingly minor change make such a big difference? I'm not even >> *using* the synthesized accessor! Yet its mere presence breaks the project. >> How can this be? m. >> >> PS

Re: convert CFRange to NSRange?

2010-12-14 Thread Matt Neuburg
On Sun, 12 Dec 2010 08:04:55 -0800, "John C. Randolph" said: > >On Dec 12, 2010, at 7:34 AM, Matt Neuburg wrote: > >> I feel like I'm missing something. I can't seem to typecast as >> CFRange to an NSRange. I know I can pull a CFRange apart and >> reassemble it as an NSRange, but shouldn't the

Re: Record indentifier and the truth

2010-12-14 Thread Nick Zitzmann
On Dec 14, 2010, at 12:43 AM, Ferruccio Vitale wrote: > That's what I mean. I need to exclude some com.apple.contacts.Contact > entities from sync, but I also let the user to choose which people > exclude, that's why I need a first pull-the-truth sync; but if I > refuse future changes of excluded

NSNetService resolution and sleep

2010-12-14 Thread jonathan
My app has a client component and a server component. The server publishes an NSNetService and the client discovers it using NSNetServiceBrowser. When the Mac goes to sleep the client NSNetServiceBrowser delegate receives - netServiceBrowser:didRemoveService:moreComing: When the Mac awakes the

Re: strategies for working w/ large amounts of text

2010-12-14 Thread tra...@postfl.com
You can work with NSTextStorage for individual documents. I've used this with whole books, lengthy ones like Don Quixote. On 2010-12-13, at 4:03 AM, Shane wrote: >> Are you building a concordance database first ? >> > > I have no thoughts whatsoever on how I'm building anything as of yet. > Jus