On Jul 6, 2009, at 8:20 PM, Bright wrote:
And I find there are several sample code about Core Data, such as
DepartmentAndEmployee and CoreRecipe
But I don't know how these code were implemented step by step.
Is there any document to show/explain the process
to implement them concr
Hi Arjun,
I know I'm a few weeks late but I only just yesterday had this same
problem. It took me an hour or so but I finally clicked that my bundle
was built for Intel and I was trying to load it on PowerPC.
I think that the error is certainly not very informative, and I don't
know whether or no
On 07/07/2009, at 1:20 PM, Brian Hughes wrote:
Thanks for your help. You were right it is acting like an
unintialized local variable. However when I initialize returnValue
to 0 at the beginning of the method.
int returnValue = 0;
I got some new bizarre behavior. In Interface Builder the t
Hi Steve,
Thanks for your help. You were right it is acting like an unintialized local
variable. However when I initialize returnValue to 0 at the beginning of the
method.
int returnValue = 0;
I got some new bizarre behavior. In Interface Builder the tableView is set to
show 9 rows. Now,
Hi all,
I need to use the Core Data Tech to my App. I am not familiar it very
much. I have read the documents about it.
And I find there are several sample code about Core Data, such as
DepartmentAndEmployee and CoreRecipe
But I don't know how these code were implemented step
Cocoa has been around since wham and has always been a part of Mac OS
X. However, certain API has been added or removed. Those changes are
identifiable in the documentation for that API.
For example, Core Animation was added in Mac OS X 10.5 Leopard. The
documentation clearly indicates Core
On Mon, Jul 6, 2009 at 10:04 PM, WT wrote:
> On Jul 6, 2009, at 10:52 PM, Fritz Anderson wrote:
>
>> NSDecimalNumber just keeps numerical values, not their history. If two
>> numbers, _as numbers_, are equal, you should expect the normalized internal
>> representations to be identical. 22.00 == 22
On Mon, Jul 6, 2009 at 7:04 PM, WT wrote:
> NSDecimalNumbers would be useless, if that were true. The whole point of
> having NSDecimalNumbers is to be able to preserve precision.
Seems like you're confusing precision with sigfigs. NSDecimalNumbers
exist because IEEE floating point doesn't repres
On Jul 6, 2009, at 5:45 PM, Joelle Lam wrote:
Where can I find the minimum System Requirements for Cocoa. In
other words,
is there a Mac OS that does not provide Cocoa support (ie Mac OS
Tiger on
PPC)?
The AppKit and Foundation components of Cocoa are in all editions of
Mac OS X (incl
On 07/07/2009, at 9:45 AM, Joelle Lam wrote:
Where can I find the minimum System Requirements for Cocoa. In
other words,
is there a Mac OS that does not provide Cocoa support (ie Mac OS
Tiger on
PPC)?
No. Mac OS X (all versions, from 10.0 up) supports Cocoa.
However there are different
Every version of OS X and therefore every Mac that can run OS X can
run Cocoa apps. Not necessarily any Coco app (certain features like
core data or properties only became available with a specific OS
release), but some version of Cocoa. I started writing Cocoa on a G3
tower, so anything yo
On Jul 6, 2009, at 10:35 PM, Eric Hermanson wrote:
Because of the functionality I am trying to achieve, I need to know
the difference between 22 and 22.00, but I can't figure out how to
get NSDecimalNumber to retain the trailing zeros. Does anyone have
advice?
It looks like you need to e
Hello,
Where can I find the minimum System Requirements for Cocoa. In other words,
is there a Mac OS that does not provide Cocoa support (ie Mac OS Tiger on
PPC)?
Thanks!
Joelle
--
Joelle Lam
j...@aptana.com
Twitter: http://twitter.com/aptana
Facebook: http://aptana.com/facebook
_
I am using Core Data to create a material database to be used for
tracking engineering materials. Each material has a bunch of different
material properties (modulus, poison's ratio, failure and yield
strength, ect). Depending on the type of material (anisotropic,
orthotropic, isotropic, co
On Mon, Jul 6, 2009 at 8:14 PM, Eric Hermanson wrote:
> First of all, this has absolutely nothing to do with NSNumberFormatter.
>
> Second of all, the NSDecimalNumber is losing information it had when I
> constructed it, which I do not want it to lose. Instead of storing an
> exponent of -2 and a
On Sat, Jul 4, 2009 at 6:27 AM, WT wrote:
> Hello all,
>
> my iPhone OS 3.0 app uses UIColor objects to set the colors of various
> objects (text colors of labels, cell view backgrounds, and segmented control
> tint colors), but I *never* store any of these colors as ivars. In other
> words, I *o
Eric Hermanson wrote:
Second of all, the NSDecimalNumber is losing information it had
when I constructed it, which I do not want it to lose. Instead of
storing an exponent of -2 and a mantissa of 2200, it instead
chooses to normalize the values to 0 and 22, respectively. While
this does p
On 07/07/2009, at 10:20 AM, William Squires wrote:
Confused in Texas
Huh? iPhone OS 3.0 (non-beta) is already released, as is the SDK.
How is this a beta issue, regardless of the NDA issue (or the fact
that the original poster thought it was still in beta)? Now if the
timestamp on this r
On Mon, Jul 6, 2009 at 8:05 AM, Dado Colussi wrote:
> My question is: what is the right way to draw an attachment, and to let text
> flow around it?
The right way would be to not use an attachment. Subclass NSTextView
and write a custom layout manager.
--Kyle Sluder
_
Confused in Texas
Huh? iPhone OS 3.0 (non-beta) is already released, as is the SDK.
How is this a beta issue, regardless of the NDA issue (or the fact
that the original poster thought it was still in beta)? Now if the
timestamp on this response was several months ago, then I'd agree,
but
On 6 Jul 2009, at 23:37, Devraj Mukherjee wrote:
Thanks all for your feedback. Seems quite inefficient. Wonder if this
is filed as a suggestion to Apple.
Why should that matter? File a request anyway, it will make the
existing request ore prominent.
There are two reasons to have a batch
First of all, this has absolutely nothing to do with NSNumberFormatter.
Second of all, the NSDecimalNumber is losing information it had when I
constructed it, which I do not want it to lose. Instead of storing an
exponent of -2 and a mantissa of 2200, it instead chooses to normalize
the va
Use Activity Monitor (or other tool of your choice) to check for a
port leak.
___
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)l
Not here. That goes into jailbreaks and scrubbing through cocoa
classes without docs, and its bounds to break between releases. So its
not really suitable.
On Jul 6, 2009, at 6:28 PM, David Blanton wrote:
There is no way to access the iPhone calendar via the official Apple
SDK.
- Where w
The stripping issue is came up for me because I do have dead-code
stripping turned on so that the individual plugins aren't any larger
than they need to be. The main impetus for the static library was as
a repository for various code pieces that may or may not be used for
a particular plugi
There is no way to access the iPhone calendar via the official Apple
SDK.
- Where would one look to find the 'unofficial' way to sync an iPhone
calendar?
On Jul 6, 2009, at 4:11 PM, Alex Kac wrote:
There is no way to access the iPhone calendar via the official Apple
SDK. On the Mac you
On Jun 28, 2009, at 12:59 PM, Phil Hystad wrote:
I am new to Interface Builder and I am still trying to figure out
some subtle details of how things work. And, my frustration level
is growing because although I have access to a very rich set of
documentation, a number of questions I have
Eric,
I agree with Keary that NSNumberFormatter holds the solution to your problem.
Here are links to pertinent documentation.
HTH,
Joel
http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSFormatter_Class/Reference/Reference.html
http://developer.apple.com/DOCUMENTA
Thanks all for your feedback. Seems quite inefficient. Wonder if this
is filed as a suggestion to Apple.
On Tue, Jul 7, 2009 at 6:51 AM, Chris Hanson wrote:
> On Jul 6, 2009, at 2:49 AM, Devraj Mukherjee wrote:
>
>> I have a suspicious feeling that there has to be a deleteAll message
>> that help
On Jul 6, 2009, at 1:35 PM, Eric Hermanson wrote:
Because of the functionality I am trying to achieve, I need to know
the difference between 22 and 22.00,
Perhaps -[NSDecimalNumberBehaviors scale] will help?
-==-
Jack Repenning
jackrepenn...@tigris.org
Project Owner
SCPlugin
http://scplugin
Sounds like an Xcode bug. If your Base SDK is 3.0, then you shouldn't
be able to select an Active SDK lower than 3.0, also, if your Active
SDK is iPhone Simulator 3.0, then the application should automatically
invoke a 3.0 simulator when you hit build-and-go.
Luke
On Jul 6, 2009, at 3:27
I want to layout an NSTextAttachment (an image) to the right margin
inside a
text paragraph such that text would flow around the image. I have
managed to
coordinate the text container to correctly adjust the proposed
rows, and to
make my layout manager to draw the attached image to the correc
On 6-Jul-09, at 15:02 , Luke the Hiesterman wrote:
I noticed your crash report says
iPhone Simulator 3.0 (138), iPhone OS 2.2.1 (5H11)
That indicates that your simulator is actually running 2.2.1
software, where initWithStyle:reuseIdentifier doesn't exist, since
it became available in 3
On Jul 6, 2009, at 2:35 PM, Eric Hermanson wrote:
NSDecimalNumber *number = [NSDecimalNumber
decimalNumberWithMantissa:2200LL exponent:-2 isNegative:NO];
This results in a decimal number that is represented both
internally, and as a string, as
22
instead of the desired
There is no way to access the iPhone calendar via the official Apple
SDK. On the Mac you want to use CalendarStore or Sync services.
On Jul 6, 2009, at 4:56 PM, David Blanton wrote:
If I wanted to sync a calendar form some source to either the iPhone
or Mac is CFCalendar the place to look?
On Jul 6, 2009, at 3:56 PM, David Blanton wrote:
If I wanted to sync a calendar form some source to either the iPhone
or Mac is CFCalendar the place to look?
It isn't. CFCalendar and NSCalendar are for making calendrical
calculations, such as the number of days in a month.
Nick Zitzmann
On Jul 6, 2009, at 2:55 PM, Greg Parker wrote:
On Jul 6, 2009, at 2:27 PM, Luke the Hiesterman wrote:
On Jul 6, 2009, at 1:25 PM, DKJ wrote:
Any idea why the app is refusing to restart? This is what I get in
the Apple report:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x
If I wanted to sync a calendar form some source to either the iPhone
or Mac is CFCalendar the place to look?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mo
On Jul 6, 2009, at 2:27 PM, Luke the Hiesterman wrote:
On Jul 6, 2009, at 1:25 PM, DKJ wrote:
Any idea why the app is refusing to restart? This is what I get in
the Apple report:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0002, 0x
Crashed Th
On Jul 6, 2009, at 1:25 PM, DKJ wrote:
Any idea why the app is refusing to restart? This is what I get in
the Apple report:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0002, 0x
Crashed Thread: 0
Application Specific Information:
iPhone
On 6.7.2009, at 20:30, Alexander Bokovikov wrote:
Thank you for the reply,
It looks like your case is just what I'd like to have, though my
situation is simpler, as my shared code is the same for different
projects (though different projects may include other different
pieces). Therefore
On 6-Jul-09, at 13:35 , David Duncan wrote:
Are you building with the 2.2.1 SDK and running on the iPhone OS 3
simulator? Perhaps the other way around? Either way, it is not a
supported configuration (the simulator OS must always match the SDK
used).
No, I'm using the 3.0 SDK.
__
I'm trying to send bytes with help AsyncSocket and MTMessageBroker
At first, i have connection with static server, which return to me ip and port
of dynamic server. i made so
...
[socket connectToHost:@"here_is_ip" onPort:here_is_port error:&error]; // it's
correct. I did receive new ip and por
On 6 Jul 2009, at 3:35 PM, Eric Hermanson wrote:
Example:
NSDecimalNumber *number = [NSDecimalNumber
decimalNumberWithMantissa:2200LL exponent:-2 isNegative:NO];
This results in a decimal number that is represented both
internally, and as a string, as
22
instead of the desired
On Jul 6, 2009, at 2:49 AM, Devraj Mukherjee wrote:
I have a suspicious feeling that there has to be a deleteAll message
that helps clear entities of a certain kind.
There is no "delete all instances of this entity" method in Core
Data. The only way to do so is to fetch all instance of the
Example:
NSDecimalNumber *number = [NSDecimalNumber decimalNumberWithMantissa:
2200LL exponent:-2 isNegative:NO];
This results in a decimal number that is represented both internally,
and as a string, as
22
instead of the desired
22.00
Because of the functionali
On Jul 6, 2009, at 1:25 PM, DKJ wrote:
Application Specific Information:
iPhone Simulator 3.0 (138), iPhone OS 2.2.1 (5H11)
*** Terminating app due to uncaught exception
'NSInvalidArgumentException',
reason: '*** -[UITableViewCell initWithStyle:reuseIdentifier:]:
unrecognized selector
On 6-Jul-09, at 11:48 , DKJ wrote:
I'm getting an intermittent infinite loop in the simulator that I
can't seem to reproduce.
Both on the simulator and the device, the problem unfolds like this:
The app goes into its loop and begins filling up all available memory
with something or other.
On Jul 6, 2009, at 11:50 AM, Greg Guerin wrote:
Brian Hughes wrote:
-(int) numberOfRowsInTableView: (NSTableView *)aTableView
{
int returnValue;
if (aTableView == gameScoresTableView) //This works as expected
{
if (currentIndex_>= 0)
>
> Nevertheless, I'd appreciate it highly, if you'll guide me through the XCode
> project settings adjustment, as it sounds foggy for me, how to make static
> library to rebuild itself when main project is built. What particular
> settings should I add to the main project?
Add the target of the p
On Jul 6, 2009, at 11:38 AM, DKJ wrote:
I want to terminate my UIApplication under some specific error
conditions. I'm used to doing this kind of thing using:
[[NSApplication sharedApplication] terminate];
But docs don't show a terminate method for UIApplication. Apparently
it will
Hi,
Another option is to just drag and drop the .m and .h icons from the
main project to new project.
This gives you the option of making a new copy or using a link to the
originals.
I often use the link method, having a Master app that is used to
develop and test the object, then when it
Brian Hughes wrote:
-(int) numberOfRowsInTableView: (NSTableView *)aTableView
{
int returnValue;
if (aTableView == gameScoresTableView) //This works as expected
{
if (currentIndex_>= 0)
{
LNPlayer *currentPlayer = [pla
On 6-Jul-09, at 11:40 , Luke the Hiesterman wrote:
Wanting to programmatically terminate an iPhone application is
typically indicative of a design flaw. On iPhone, only the user
decides when to exit an application. Why do you feel you need to
override the user here?
Good point. And as soon
On 7/6/09 11:32 AM, Greg Guerin said:
>> I was wondering the same thing the other day. After searching the
>> docs
>> and archives, I concluded the only way is to call deleteObject: in a
>> loop. I was surprised there's no method that takes an array/set and
>> deletes them all.
>
>Delete-all-of-
Wanting to programmatically terminate an iPhone application is
typically indicative of a design flaw. On iPhone, only the user
decides when to exit an application. Why do you feel you need to
override the user here?
Luke
On Jul 6, 2009, at 11:38 AM, DKJ wrote:
I want to terminate my UIApp
I want to terminate my UIApplication under some specific error
conditions. I'm used to doing this kind of thing using:
[[NSApplication sharedApplication] terminate];
But docs don't show a terminate method for UIApplication. Apparently
it will respond to the message regardless; howeve
Sean McBride wrote:
I was wondering the same thing the other day. After searching the
docs
and archives, I concluded the only way is to call deleteObject: in a
loop. I was surprised there's no method that takes an array/set and
deletes them all.
Delete-all-of-a-kind sounds like something o
Thank you for the reply,
It looks like your case is just what I'd like to have, though my situation
is simpler, as my shared code is the same for different projects (though
different projects may include other different pieces). Therefore the
problem of code stripping (which you described) sho
Hi,
I have two tableViews in my application. One works perfectly the other
doesn't. For both I use a simple data source.
The tableView uses numberOfRowsInTableView: (NSTableView *)aTableView to get
the number of rows by doing a count of the objects in my array. This number
happens to be 22
Aurélien Hugelé wrote:
Are you sure you are not instantiating/creating/opening a connection
each time? are you really reusing the same connection?
Yes. There's a lot of logging around that code. If it was being closed
and re-opened we'd see it. I've also debugged through that code, and
the i
On 7/6/09 7:49 PM, Devraj Mukherjee said:
>I need my application to be able to delete all objects of a core data
>managed entity, at the moment the only way I can see how to do that is
>to fetch all objects of the entity kind and delete them one at a time
>looping through the collection.
>
>I have
Hello,
I'm using NSTokenField and I've implemented the delegate method
"tokenField:completionsForSubstring:indexOfToken:indexOfSelectedIted:"
to provide autocompletion. However, I don't have the list of
autocompletions stored locally; I have to make a call to an API over
the Internet, and
On Jul 5, 2009, at 10:18 PM, Ken Tozier wrote:
Never mind. I figured it out.
Just catching up after a few days away from the list, and I see
several messages of the general form:
thanks, I figured it out
or
ok, I found the problem
or similar. As these messages get indexed by Google a
I build a number of plugins and ended up with a lot of shared code so
I ended up creating a project that builds a static library with all
those pieces, then make all my plugin targets dependent on it so that
it gets [re-]built first. I created a common include file that
includes all the hea
I want to layout an NSTextAttachment (an image) to the right margin inside a
text paragraph such that text would flow around the image. I have managed to
coordinate the text container to correctly adjust the proposed rows, and to
make my layout manager to draw the attached image to the correct plac
> Hi, I have an application where I need to be able to find the closest
> equivalent font should a font be missing. e.g. someone creates a file
> and sends it to someone else, who doesn't have the font that was used to
> create the original file installed on their system.
>
> I thought that ma
>
> Is this option applicable to library project settings or to a project where
> this library is called from?
>
Since the linking is done on the project that's including the library,
so this should be done on the project that's using the library.
>
> Could you please give an example of particula
Kyle,
I only have one UTI definition:
com.identityfinder.identityfinderenterpriseedition.idfvault
I followed the pattern:
com...
And it matches what I have for the file name extension. Is that correct?
Here's the entire plist:
CFBundleTypeExtensions
idfvau
Thank you, Jesse, but just a couple of points to clarify:
Static library linking with ObjC class, most likely could be done
successfully by only adding -ObjC and -all_load to the "Other Linker
Flags" in the build configuration.
Is this option applicable to library project settings or to a proj
Hello Alex,
If you don't want to build a framework, best way to go is building a
static library or else you have to add their sources every time you
want to use it on a new project.
Static library linking with ObjC class, most likely could be done
successfully by only adding -ObjC and -all_load t
Are you sure you are not instantiating/creating/opening a connection
each time? are you really reusing the same connection?
Aurélien,
Objective Decision Team
On 2 juil. 09, at 21:29, Kevin Brock wrote:
We've got an application that uses some NSConnection objects to call
between binaries
Quincey - cheers, that's worked a charm. I whacked in an NSLog to
check, and it was indeed calculating heights for all non-visible cells
with only the placeholder text "Text Cell". I'm still unsure as to why
this led to the weird tiling behaviour rather than just truncated
text, but I have
Hi all,
I need my application to be able to delete all objects of a core data
managed entity, at the moment the only way I can see how to do that is
to fetch all objects of the entity kind and delete them one at a time
looping through the collection.
I have a suspicious feeling that there has to
Hi all,
For those of you who've never explored the delights that the fine city of
the Hill of Pigs has to offer, tonight offers an unparalleled opportunity.
Come and sit in (or outside, weather permitting) a pub only a short distance
from the railway station, and listen to Mike Abdullah speaking a
Hi, All,
Maybe it's a dummy question, but I can't find a way to share some ObjC
classes with several XCode projects. I've created a set of Cocoa classes (.h
and .m files) What I'd like to get is the ability to write something like
this:
#import
I don't want to distribute these classes, as
76 matches
Mail list logo