Yes, you are right, but it does not make a difference, I tried all encodings.
This is a DBF file. From the DBF file format description the header is binary
and the rest is ASCII.
I found an older post from someone with French special chars that went lost:
Le 22 déc. 2011 à 09:13, Alexander Reichstadt l...@mac.com a écrit :
Yes, you are right, but it does not make a difference, I tried all encodings.
Did you try UTF-8 encoding?
Besides, if you open your file with an external application, e.g. OpenOffice or
TextWrangler, what happens?
Vincent
Yes, tried NSUTF8StringEncoding, I really tried all the ones I found in the
NSString encoding documentation.
When I import this file as DBF into FileMaker Pro it looks just as bad. But
when I import it into a MySql it works fine.
Here an example of what NSLog says:
R\U0094h.,
Yes, tried NSUTF8StringEncoding, I really tried all the ones I found in the
NSString encoding documentation.
When I import this file as DBF into FileMaker Pro it looks just as bad. But
when I import it into a MySql it works fine.
Here an example of what NSLog says:
R\U0094h.,
On 21 dec 2011, at 16:45, Alexander Reichstadt wrote:
NSString eats the Umlaute. How do I tell NSString to not do that?
If you provide the correct encoding when creating a NSString from an external
representation, all will be well. If you don't, then you'll end up with the
type of issues
How to get the phone number use ios sdk in iphone.?
___
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)lists.apple.com
OK, I found a way to import it into FileMaker. It looks good when I use DOS
Encoding. But when I use kCFStringEncoding derivates I had no luck. I know CF
and NSString is toll free bridged, but does this apply to the encodings as
well? There is some post from 2000 by Ali Ozer that would suggest
2011/12/22 吴明 wuminghui...@163.com:
How to get the phone number use ios sdk in iPhone.?
Not gonna happen. iOS does not allow you to access this information.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
OK, I found a way to import it into FileMaker. It looks good when I use DOS
Encoding. But when I use kCFStringEncoding derivates I had no luck. I know CF
and NSString is toll free bridged, but does this apply to the encodings as
well? There is some post from 2000 by Ali Ozer that would
On Thu, Dec 22, 2011 at 1:42 AM, Alexander Reichstadt l...@mac.com wrote:
OK, I found a way to import it into FileMaker. It looks good when I use DOS
Encoding. But when I use kCFStringEncoding derivates I had no luck. I know CF
and NSString is toll free bridged, but does this apply to the
Le 22 déc. 2011 à 10:42, Alexander Reichstadt a écrit :
OK, I found a way to import it into FileMaker. It looks good when I use DOS
Encoding. But when I use kCFStringEncoding derivates I had no luck. I know CF
and NSString is toll free bridged, but does this apply to the encodings as
Thanks, it works. The following solved the problem, where theChoice is a URL to
a local file from an NSOpenPanel:
NSData *theData = [NSData dataWithContentsOfURL:theChoice];
NSString *theContent = [[NSString alloc] initWithData:theData encoding:
Dear list,
I have a very complex document based app. If I run the app compiled with
garbage collection support, then I can open and close document windows without
problems. With garbage collected disabled, opening and closing the document
windows results in crashes. Clearly I have a memory
I've managed to commit the same error twice in 3 weeks, just long enough apart
for me to forget what I did the last time and spend an age debugging again.
Basically in one of my property setters on an object I set up KVO on the object
set into the property (and of course tear down KVO on the
Did you actually write this app to be dual-mode, or are you under the
impression that turning off garbage collection will magically fix things?
Going by the stack trace, this is a classic zombie. Use Instruments to find the
bug.
On 22 Dec 2011, at 10:48, Martin Hewitson wrote:
Dear list,
On 22 Dec 2011, at 09:59, Alexander Reichstadt wrote:
Thanks, it works. The following solved the problem, where theChoice is a URL
to a local file from an NSOpenPanel:
NSData *theData = [NSData dataWithContentsOfURL:theChoice];
NSString *theContent = [[NSString alloc]
On 22, Dec, 2011, at 02:39 PM, Mike Abdullah wrote:
Did you actually write this app to be dual-mode, or are you under the
impression that turning off garbage collection will magically fix things?
To be honest, I wrote the app assuming garbage collection was off. I think it
must have got
On 22 Dec 2011, at 14:03, Martin Hewitson wrote:
On 22, Dec, 2011, at 02:39 PM, Mike Abdullah wrote:
Did you actually write this app to be dual-mode, or are you under the
impression that turning off garbage collection will magically fix things?
To be honest, I wrote the app assuming
Thanks
I got some of the way by Google.
1.
[[NSUserDefaults standardUserDefaults] stringForKey:@SBFormattedPhoneNumber];
2.
Use CTSettingCopyMyPhoneNumber();
This function is included in Coretelephony framework.
3.
Get all contacts phone number by addressbook framework. Then get the phone
Thanks, but I have not tried. My thinking went along the lines of if I read
the string directly from the URL I have no control over what encoding is being
used for reading or it defaults to something. If I first read as data, I can do
with those bytes as I please. The DBF file is not in one
On Dec 22, 2011, at 9:54 AM, Alexander Reichstadt wrote:
The DBF file format documentation says the header is in binary, then there is
a linefeed (\r), then there is the body. Each field has a fixed length,
wether used or not doesn't matter, the unused rest is filled with spaces.
So, I
On Dec 22, 2011, at 8:37 AM, 吴明 wrote:
1. [[NSUserDefaults standardUserDefaults]
stringForKey:@SBFormattedPhoneNumber];
2. Use CTSettingCopyMyPhoneNumber();
This function is included in Coretelephony framework.
3. Get all contacts phone number by addressbook framework. Then get the
On Mon, 19 Dec 2011 15:55:49 -0800, Matt Neuburg m...@tidbits.com said:
The docs say:
@property(nonatomic, readonly) UIViewController *presentingViewController
Discussion
The default implementation of this property walks up the view hierarchy,
starting from this view controller. The first
On 22 Dec 2011, at 15:54, Alexander Reichstadt wrote:
Thanks, but I have not tried. My thinking went along the lines of if I read
the string directly from the URL I have no control over what encoding is
being used for reading or it defaults to something. If I first read as data,
I can do
On 22, Dec, 2011, at 03:32 PM, Mike Abdullah wrote:
On 22 Dec 2011, at 14:03, Martin Hewitson wrote:
On 22, Dec, 2011, at 02:39 PM, Mike Abdullah wrote:
Did you actually write this app to be dual-mode, or are you under the
impression that turning off garbage collection will
On Thu, 22 Dec 2011 21:13:07 +0800, Roland King r...@rols.org said:
You used to get a handy message logged to the console when an object with KVO
registered on it was deallocated, but not in either of these two cases (and I
can quite clearly demonstrate that the object was dealloc'ed with
On Mon, 19 Dec 2011 10:39:26 -0800, Matt Neuburg m...@tidbits.com said:
According to the docs:
@property(nonatomic, assign) BOOL providesPresentationContextTransitionStyle
Discussion
If the value of this property is YES and the value of the
definesPresentationContext property is YES, then
The header cannot be of a fixed length, as it contains the fields, their length
and their types, which can vary. What it says there is:
n above is the last byte in the field descriptor array. The size of the array
depends on the number of fields in the table file.
More on this here:
I should add, you are right in that it also says:
n+1, 1 byte, 0x0D stored as the Field Descriptor terminator.
Everything from byte 68 on is then a multiple of 48 bytes, so I can simply
check on each 67+(n*48)+1 to see if that byte is 0x0D, which is the marker
position of which to follow
On Dec 22, 2011, at 8:59 AM, Matt Neuburg m...@tidbits.com wrote:
Okay, I did eventually find the situation in which the docs are correct. It
only took me two days to figure it out.
But it is up to the docs to state that situation! This really does carry the
notion of coy and allusive
Xcode 4.2, 10.7 SDK, target 10.6, ARC (weak pointers must be
unsafe_unretained).
I had the following problem, which I solved, but I don't trust the solution:
When I used heapshotting to see what happened when I repeatedly opened and
closed my document, I was accumulating a lot of memory as the
On Thu, Dec 22, 2011 at 11:29 AM, Fritz Anderson
fri...@manoverboard.org wrote:
The document's NIB (no, I don't put the document in the NIB, and I'm using
the window controller that comes with the document) contains an
NSObjectController and an NSArrayController at the top level. Per Patterns
given an app is sold on iTunes, is there a way for that app to find out
which email address was used for the iTunes account when it was purchased?
I don't believe so. As far as I know, the only way to find that out is to ask
the user.
Keep in mind that although an AppleID is required
And just to add in one more bit about why it's important to separate the text
from the binary header, -initWithData:encoding: [r]eturns nil if the
initialization fails for some reason (for example if data does not represent
valid data for encoding). (That is from the NSString docs.)
On Dec
I think we mean loses.
Loose means not tight.
Sent from my Verizon Wireless BlackBerry
-Original Message-
From: Steve Christensen puns...@mac.com
Sender: cocoa-dev-bounces+zav=mac@lists.apple.com
Date: Thu, 22 Dec 2011 13:06:32
To: Alexander Reichstadtl...@mac.com
Cc: Cocoa-Dev
On 22 Dec 2011, at 2:05 PM, Kyle Sluder wrote:
On Thu, Dec 22, 2011 at 11:29 AM, Fritz Anderson
fri...@manoverboard.org wrote:
The document's NIB (no, I don't put the document in the NIB, and I'm using
the window controller that comes with the document) contains an
NSObjectController and
On Dec 22, 2011, at 12:46 PM, John Joyce dangerwillrobinsondan...@gmail.com
wrote:
...an AppleID is required to be formatted like an email address...
No, it doesn't. I have an Apple ID with a space in it and no @ or host name
portion. This may be a requirement for new Apple IDs, but it wasn't
...an AppleID is required to be formatted like an email address...
No, it doesn't. I have an Apple ID with a space in it and no @ or host name
portion. This may be a requirement for new Apple IDs, but it wasn't always
that way nor is there any requirement that they be changed.
--
Gary
On 22 Dec 2011, at 4:02 PM, Fritz Anderson wrote:
Maybe I have to have another look at that horrific little ARC dance. If
that's necessary, then I was wrong to declare the object-controller outlets
u_u, they should be strong, and I should then do the HLAD.
HLAD was harmful — passing the
On Dec 23, 2011, at 1:19 AM, Matt Neuburg wrote:
On Thu, 22 Dec 2011 21:13:07 +0800, Roland King r...@rols.org said:
You used to get a handy message logged to the console when an object with
KVO registered on it was deallocated, but not in either of these two cases
(and I can quite clearly
On Dec 22, 2011, at 3:58 PM, Roland King wrote:
On Dec 23, 2011, at 1:19 AM, Matt Neuburg wrote:
On Thu, 22 Dec 2011 21:13:07 +0800, Roland King r...@rols.org said:
You used to get a handy message logged to the console when an object with
KVO registered on it was deallocated, but not in
Thanks
I will use the UUID or DeviceID instead of the phone number.
___
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
There’s a brief description in the iOS docs of Protecting Data Using On-Disk
Encryption”. Unfortunately there’s no description of how the file encryption
actually happens, so I’m unsure whether it’s suitable for use with database
files that can grow large, are updated incrementally, and are
FYI, the DeviceID was deprecated in iOS 5.
Dave
Sent from Jane
On Dec 22, 2011, at 4:50 PM, 吴明 wuminghui...@163.com wrote:
Thanks
I will use the UUID or DeviceID instead of the phone number.
___
Cocoa-dev mailing list
On 12/22/11 4:50 PM, 吴明 wrote:
Thanks
I will use the UUID or DeviceID instead of the phone number.
The device ID (UIDevice's -uniqueIdentifier) is deprecated in iOS 5.
Don't use it. (As you can probably gather, Apple is rightfully keen on
preventing developers from trying to track users in
I dont found about this in iOS5.0 Api diffs and what's new in ios5.0
FYI, the DeviceID was deprecated in iOS 5.
Dave
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
http://developer.apple.com/library/IOs/documentation/UIKit/Reference/UIDevice_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/doc/uid/TP40006902-AppendixA-DontLinkElementID_47
Cheers,
Dave
On Dec 22, 2011, at 6:08 PM, 吴明 wrote:
I dont found about this in iOS5.0 Api diffs and
Thanks
I will use the UUID or DeviceID instead of the phone number.
The device ID (UIDevice's -uniqueIdentifier) is deprecated in iOS 5.
Don't use it. (As you can probably gather, Apple is rightfully keen on
preventing developers from trying to track users in non-anonymized ways.)
Point well taken. I do often sometimes forget about the enterprise side of
things.
(Sent from my iPad.)
--
Conrad Shultz
On Dec 22, 2011, at 19:23, John Joyce dangerwillrobinsondan...@gmail.com
wrote:
Thanks
I will use the UUID or DeviceID instead of the phone number.
The device ID
On Dec 22, 2011, at 11:30 AM, Alexander Reichstadt wrote:
I should add, you are right in that it also says:
n+1, 1 byte, 0x0D stored as the Field Descriptor terminator.
Everything from byte 68 on is then a multiple of 48 bytes, so I can simply
check on each 67+(n*48)+1 to see if that
I second this. I had to write code to parse a DBF file as part of a suite to
handle shapefiles (GIS) and it was really not a huge effort. These formats
are designed to be pretty straightforward to parse.
--Graham
On 23/12/2011, at 3:04 PM, Charles Srstka wrote:
On Dec 22, 2011, at 11:30
I tried Instruments and it is showing the following crash log:
1 libobjc.A.dylib 0x7fff952f5d5e objc_exception_throw
+ 43
2 CoreFoundation 0x7fff9697e4c9 -[NSException raise]
+ 9
3 ExceptionHandling 0x000100325e0a
On Dec 22, 2011, at 11:52 PM, Appa Rao Mulpuri wrote:
I tried Instruments and it is showing the following crash log:
1 libobjc.A.dylib 0x7fff952f5d5e
objc_exception_throw + 43
2 CoreFoundation 0x7fff9697e4c9 -[NSException
raise] + 9
3
Name: NSUncaughtSystemExceptionException
Reason: Uncaught system exception: signal 5
On 23/12/11 11:50 AM, Ken Thomases k...@codeweavers.com wrote:
On Dec 22, 2011, at 11:52 PM, Appa Rao Mulpuri wrote:
I tried Instruments and it is showing the following crash log:
1 libobjc.A.dylib
54 matches
Mail list logo