[SOLVED] Re: length of file from NSFileHandle?

2016-08-27 Thread Graham Cox
> On 27 Aug 2016, at 1:41 PM, Ken Thomases wrote: > > The reason it has no length property is because not all NSFileHandles have > the concept of a length. For example, a file handle associated with a pipe > or socket. Right, though for those cases it could just return 0 or some other marker

Re: length of file from NSFileHandle?

2016-08-26 Thread Jeff Szuhay
> On Aug 26, 2016, at 8:19 PM, Graham Cox wrote: > Apparently a simple task, but no obvious API for it: getting the length > (size) of a file I have a NSFileHandle for. This class has no -length > property, so how can I get it? > > I need to know because I have a requirement to create a backup

Re: length of file from NSFileHandle?

2016-08-26 Thread Ken Thomases
On Aug 26, 2016, at 10:19 PM, Graham Cox wrote: > > Apparently a simple task, but no obvious API for it: getting the length > (size) of a file I have a NSFileHandle for. This class has no -length > property, so how can I get it? The reason it has no length property is because not all NSFileHan

Re: length of file from NSFileHandle?

2016-08-26 Thread R. Matthew Emerson
> On Aug 26, 2016, at 11:32 PM, R. Matthew Emerson > wrote: > > >> On Aug 26, 2016, at 11:19 PM, Graham Cox wrote: >> >> Hi all, >> >> Apparently a simple task, but no obvious API for it: getting the length >> (size) of a file I have a NSFileHandle for. This class has no -length >> proper

Re: length of file from NSFileHandle?

2016-08-26 Thread R. Matthew Emerson
> On Aug 26, 2016, at 11:19 PM, Graham Cox wrote: > > Hi all, > > Apparently a simple task, but no obvious API for it: getting the length > (size) of a file I have a NSFileHandle for. This class has no -length > property, so how can I get it? > > I need to know because I have a requirement t

length of file from NSFileHandle?

2016-08-26 Thread Graham Cox
Hi all, Apparently a simple task, but no obvious API for it: getting the length (size) of a file I have a NSFileHandle for. This class has no -length property, so how can I get it? I need to know because I have a requirement to create a backup copy of a file once it exceeds a certain size. Thi