Re: Record indentifier and the truth

2010-12-13 Thread Ferruccio Vitale
On Tue, Dec 14, 2010 at 8:26 AM, Nick Zitzmann wrote: > If you're prepared to delete and reset all of your records every time, then > that's fine, though not very practical if there are thousands of records to > pull. It might just be better to refuse the changes you don't want to pull > when

Re: Record indentifier and the truth

2010-12-13 Thread Nick Zitzmann
On Dec 14, 2010, at 12:16 AM, Ferruccio Vitale wrote: > Great! It looked that an ID changes between two slow syncs. If your client initiated the slow sync, then this does not need to be true. If some other client initiated the slow sync, then your client should have picked up on this, and dele

Re: Record indentifier and the truth

2010-12-13 Thread Ferruccio Vitale
Hi Nick, On Mon, Dec 13, 2010 at 2:04 AM, Nick Zitzmann wrote: > > Record identifiers are the immutable IDs. They're set on a per-client basis > so you can use your local record's unique IDs as change IDs, which makes > pushing > update & delete changes much easier. Great! It looked that an ID

Re: How to read a text file over a network

2010-12-13 Thread Nick Zitzmann
On Dec 13, 2010, at 10:12 PM, Abhijeet Singh wrote: > I think the type of server is AFP. Because the file path displayed by Finder > is: afp://PriyankaMac._afpovertcp._tcp.local/shared/file1.txt. > But if i put the same file path in my file2.txt my program fails to open > file1.txt file. That'

Re: Re: How to read a text file over a network

2010-12-13 Thread Abhijeet Singh
Hi,I think the type of server is AFP. Because the file path displayed by Finder is: afp://Priyanka Mac.afpovertcp.tcp.local/shared/file1.txt.But if i put the same file path in my file2.txt my program fails to open file1.txt file. Abhijeet Original message From:"Nick Zitzmann"< n...@chronosnet.co

Re: Obscuring an NSString

2010-12-13 Thread Adam Gerson
Thanks Kyle. Here is the finished working code for anyone else who stumbles onto this thread. It uses an NSData category found here: http://cocoawithlove.com/2009/06/base64-encoding-options-on-mac-and.html - (NSString *)base64Encode:(NSString *)plainText { NSLog(@"%@",plainText);

Best practice for receiving data

2010-12-13 Thread gumboots
Hi everyone, This is probably an elementary question and I may be using the wrong terminology, so I apologise. My app takes measurements from a HP Data Acquisition unit (DAU). I push commands out to the DAU and wait for the values returned on a serial port (AMSerialPort). I have it sort of wo

Working with CGImage and Retina Display

2010-12-13 Thread Gustavo Pizano
Hello all. Im creating some views which draws a CGImage that is obtained from a Atlas Map, (Big map containing all the images). for iPHone 4 I have this map 2 times bigger than the normal one, so if I have a 2.0 scale on screen I load that one. What Im getting is that on iPhone 4 Im seeing all

Re: strategies for working w/ large amounts of text

2010-12-13 Thread Ian Joyner
On 13 Dec 2010, at 14:03, Shane wrote: >> Are you building a concordance database first ? >> > > I have no thoughts whatsoever on how I'm building anything as of yet. > Just researching how something of this size would be manipulated. In the case of large texts like the Bible, you have a data s

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

2010-12-13 Thread Ricky Sharp
On Dec 13, 2010, at 1:31 PM, Wim Lewis wrote: > > 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 A n

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

2010-12-13 Thread Wim Lewis
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 A new discovery: changing the name of the ivar / property to

assign property behaves differently from simple instance variable???

2010-12-13 Thread Matt Neuburg
I have reduced this problem (after losing an entire day of work, of course) to a very few lines of code. They won't make much sense but just bear with me. Here we go... I have this code (iOS), and it works fine: @interface TextFieldFunViewController : UIViewController { UIView* firstRespond

Re: How to read a text file over a network

2010-12-13 Thread Wim Lewis
On 13 Dec 2010, at 4:54 AM, Abhijeet Singh wrote: > My question is if user wants to define some network file path then:How to > define a network file path? (I tried keeping file1.txt over a network and > define its path as given in "Get Info" panel in file2.txt)How to read a file > over a netw

Using bindings to lessen amount of code

2010-12-13 Thread Paul Johnson
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"] objectAtIndex:rowIndex]. Is there a way to solely use bindings to

Re: How to read a text file over a network

2010-12-13 Thread Nick Zitzmann
On Dec 13, 2010, at 5:54 AM, Abhijeet Singh wrote: > Hi,I am new to Mac. In my application I have to read a text file (say > file1.txt) from a user defined location/path. User defines this filepath in > another text file (say file2.txt). My program first reads file2.txt and gets > the path of

Re: PreferencePane: To use xxx System Preferences must quit and reopen (Snow Leo 10.6.3)

2010-12-13 Thread eveningnick eveningnick
Thanks for the answers, i enabled Garbage collection, The problem was that i had "Build for active platform" checkbox checked, i unchecked it and it started working fine ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: Rotated and scaled CALayer

2010-12-13 Thread Rimas M.
Hello Vincent, > Did you had a look at the vImage framework? > > Vincent 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. Unl

Re: convert CFRange to NSRange?

2010-12-13 Thread Gregory Weston
On Dec 13, 2010, at 04:02, John Engelhart wrote: > So, to the original poster- it's sort of like "Why is the sky blue?" > There's actually a good answer, but it's unbelievably complex and > convoluted. "So you know where to stop mowing." ___ Cocoa-dev

How to read a text file over a network

2010-12-13 Thread Abhijeet Singh
Hi,I am new to Mac. In my application I have to read a text file (say file1.txt) from a user defined location/path. User defines this filepath in another text file (say file2.txt). My program first reads file2.txt and gets the path of file1.txt from there. file2.txt always exists on my machine b

Re: convert CFRange to NSRange?

2010-12-13 Thread John Engelhart
On Sun, Dec 12, 2010 at 11:51 AM, Andreas Grosam wrote: > > On Dec 12, 2010, at 4:34 PM, Matt Neuburg wrote: > > > I feel like I'm missing something. I can't seem to typecast as CFRange to > an NSRange. > > Both are distinct C structs. In C, *explicitly* typecasting one pointer to > the other woul