I am adding a UILabel instance as a subview of my custom UITableViewCell
instance's contentView property.
When I select the cell, the row is highlighted blue, except for the background
of the label. The label text is sharp, but the background is white for the
bounds of the contentView.
When I
I am reworking Apple's CoreDataBooks sample iPhone application to add
five relationship-less instances of an NSManagedObject class ("Book").
When I add these to a secondary managed object context (MOC) and then
merge these changes with the primary MOC, the application crashes with
the follo
I am using the CoreDataBooks sample application as a basis for pulling
data into a secondary managed object context in the background, and
then merging that data into the primary managed object context.
The data I am pulling in is a Book entity with a to-one relationship
with an Owner entit
On Sep 30, 2009, at 4:04 AM, I. Savant wrote:
Whatever the answer, the simple solution is to change your entity's
name.
Unfortunately, that simple solution means parting ways with the naming
scheme of the source I'm pulling data from and changing the naming
scheme for all my other entiti
After I added an Entity called "Object", I get the following message
when executing my application on the iPhone:
objc[4219]: Class Object is implemented in both /usr/lib/
libobjc.A.dylib and /var/mobile/Applications/BFDFC14C-DB60-44BB-8118-
D2AAB39E2EE6/MyApp.app/MyApp. One of the two will b
I have a view hierarchy managed with UINavigationController, of the
form A -> B, where A and B are UIViewController subclasses.
When I am in the B view, I have a backBarButtonItem in the navigation
bar that will pop the application back to the A view, when selected.
The title of the backBar
-11-10 00:02:35 -0800
Owner < 123456 | username >
>,
Book <
name: myPrefix-v2
creationDate: 2008-11-09 23:58:36 -0800
Owner < 123456 | username >
>
)}
--
-Alex
On Sep 8, 2009, at 11:04 PM, Alex Reynol
is:
--
{(
"myPrefix-v1",
"myPrefix-v2"
)}
--
Should I be using a different predicate to retrieve Book objects with
the names "myPrefix-v1" and "myPrefix-v2"?
Regards,
Alex
On Sep 8, 2009, at 7:08 PM, Melissa J. Turner wrote:
O
I am having trouble fetching results with a to-many relationship and
would like to ask for advice.
I have two NSManagedObject subclasses: Owner and Book. There is a one-
to-many relationship between Owner and Book (an Owner can be
associated with many Books).
@interface Owner : N
Let's say I have a class interface and implementation, as follows:
---
@interface A : NSObject {
...
}
- (void) handleTask;
@end
@implementation A
...
- (void) handleTask {
// do stuff specific to A object type...
}
---
Let's say I then subclass A and override -handleTask:
---
@interface
I have the following method, which digests a string with the SHA-1
algorithm:
- (NSString *) HMACSHA1DigestWithSecretKey:(NSString *)secretKey {
unsigned char digest[CC_SHA1_DIGEST_LENGTH];
char *keyCharPtr = strdup([secretKey UTF8String]);
char *dataCharPtr = strdup([self UTF8String]);
I am trying to use the HMAC SHA-1 components of Apple's CommonCrypto
library with NSStrings, and I am running into some difficulty.
I have the following method:
- (NSString *) hmacSha1:(NSString *)key data:(NSString *)data
{
unsigned char digest[CC_SHA1_DIGEST_LENGTH] = {0};
On Oct 7, 2008, at 1:42 AM, Jason Coco wrote:
[[NSRunLoop mainRunLoop] addTimer:myNSTimer
forMode:NSDefaultRunLoopMode];
Thanks for the quick response. Unfortunately, this did not work. The
'myNSTimer' never fires.
As a workaround, I tried to update the new view with:
[NSThread detachNe
When I press my interface button, it calls:
[NSThread detachNewThreadSelector:@selector(initializeData)
toTarget:self withObject:nil];
This calls:
- (void) initializeData
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
... initi
Is it possible to take a CGLayer and turn it into a bitmap
representation?
Also, is it possible to grab a CGRect "subset" of a CGLayer and append
that to a new CGLayer, so that it isn't necessary to recalculate the
entirety of a new CGLayer?
Thanks,
Alex
__
ciate all the advice.
-Alex
Kyle Sluder wrote:
On Mon, Sep 15, 2008 at 5:43 PM, Alex Reynolds <[EMAIL PROTECTED]> wrote:
Are there any downsides to creating Cocoa-based applications in Objective
C++?
If you're switching to Objective-C++ just to get std::vector, I would
strongly
>
> Of course there's always std::vector< bool > ;-) usually at 1 bit per
> bit...
>
> --
> Scott Ribe
> [EMAIL PROTECTED]
> http://www.killerbytes.com/
> (303) 722-0567 voice
Thanks for the tip. So I ended up going the route of making my .m files into
.mm files, and using std::vector< vector > t
Thanks all for your quick insight!
-Alex
___
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
Help/Unsubscribe/Update
The %lu with casting seems to run into the same issue as %u:
...
2008-09-14 21:43:07.241 NSUIntTest[19779:10b] NSUInteger: 2
2008-09-14 21:43:07.259 NSUIntTest[19779:10b] NSUInteger: 1
2008-09-14 21:43:07.260 NSUIntTest[19779:10b] NSUInteger: 0
2008-09-14 21:43:07.261 NSUIntTest[19779:10b] NSUInt
ep 14, 2008, at 10:15 PM, Alex Reynolds wrote:
NSLog(@"NSUInteger: %d", counter);
The correct type modifier for unsigned integers is %u not %d. Switch
it and try again to see what's really happening.
--Nathan
___
Cocoa-dev
I'm wondering if I'm using unsigned integers (specifically NSUInteger)
properly or not.
I was under the impression that unsigned integers run from 0 to
MAX_INT, but when I use them in a "for" loop within these bounds, the
loop does not seem to always obey these constraints.
For example:
I am currently putting 320 to 480 character long NSString * instances
into an NSMutableArray. The characters are 0 or 1.
I guess I could use an int array, but I'm looking to speed up my app
and reduce storage. Is it possible to create a BOOL array that can be
put into an NSMutableArray?
T
22 matches
Mail list logo