I think that Apple listens too much to AT&T. One of my mobile operator
in fact promote Skype and the two other ones allow Skype on their
networks. Anyway, this is far off-topic for this list.
On 18 Jul 2009, at 01:18, William Squires wrote:
Not sure this'll get anywhere. IIRC, Apple expressl
I've satisfied myself that trying to use IB which is essentially a
bind-at-compile-time approach is a pita when trying to deal with an
execution-time-specified number of windows which must accommodate a
tab view which must accommodate a workspace (text view imbedded in a
scroll view), the s
The topic of creating a Cocoa app without using IB has come up many
times since I've been on this list, and the general opinion is you
should always use IB unless you've got a really good reason not to.
IB's not a toy, it doesn't make you any less of a programmer, it's not
going anywhere, and it's
On Jul 18, 2009, at 01:18, Dale Miller wrote:
I've satisfied myself that trying to use IB which is essentially a
bind-at-compile-time approach is a pita when trying to deal with an
execution-time-specified number of windows which must accommodate a
tab view which must accommodate a workspac
For anyone who hasn't done it themselves already, I just wrote up a
little Cocoa touch app that shows you all the classes in the objective-
C runtime. No point in submitting it to the app store, but if anyone
would like a copy, drop me a note and I'll mail it to you. It's a
36KB .zip file.
Oop, forgot to add: send requests to me, not the list.
-jcr
“The two most important tools an architect has are the eraser in the
drawing room and the sledge hammer on the construction site. ”
-Frank Lloyd Wright
___
Cocoa-dev mailing list (Cocoa
I've got a UIView object that uses an NSDictionary. The UIView is
instantiated from a nib, so I initialise the dictionary in
awakeFromNib, since the initWithFrame: method is never called. Is it
appropriate to release this dictionary in the UIView dealloc method?
dkj
On 18 Jul 2009, at 9:59 AM, DKJ wrote:
I've got a UIView object that uses an NSDictionary. The UIView is
instantiated from a nib, so I initialise the dictionary in
awakeFromNib, since the initWithFrame: method is never called. Is it
appropriate to release this dictionary in the UIView deall
On 18-Jul-09, at 8:08 , Fritz Anderson wrote:
How did you create the NSDictionary? Do you declare a property or
accessor methods for the instance variable? Did you use them? If a
property, does it have the copy or retain attributes?
Show your declaration and initialization code.
This is w
Hi,
I'm the developer of a GUI for OCUnit called OCRunner. I'm having an
issue with loading test bundles that use GC into the app. It brings up
the following error:
18/07/2009 2:37:05 pm OCRunnerTool[9566] Error loading /Test/Binary/
Path: dlopen(/Test/Binary/Path, 265): no suitable image
On Jul 17, 2009, at 5:38 PM, James Walker wrote:
Is there a way to have an NSTextView that is not enclosed in an
NSScrollView? IB doesn't seem to want to let me. It would be for
displaying static rich text (certain things are harder, or maybe even
impossible, to do with NSTextField). I know
On 18 Jul 2009, at 10:16 AM, DKJ wrote:
On 18-Jul-09, at 8:08 , Fritz Anderson wrote:
How did you create the NSDictionary? Do you declare a property or
accessor methods for the instance variable? Did you use them? If a
property, does it have the copy or retain attributes?
Show your declarati
I have a Core Data app and several tables for adding various
entities. I want to add an index to each new object so I can sort
them after fetching. I've been using a custom NSArrayController and
overriding the addObject:, insertObject: atArrangedObjectIndex:, and
removeObject: methods to
On Jul 18, 2009, at 09:01, Brad Gibbs wrote:
This means that I need a custom NSArrayController for each entity.
Is there a way to make the entity name dynamic? In other words, can
I ask the array controller for the name of the entity it's managing,
so I only need one custom NSArrayControl
It sounds like it would just be easier to do sudo chat with a php
script under my current available tools.
On Jul 17, 2009, at 7:20 PM, glenn andreas wrote:
On Jul 17, 2009, at 9:08 PM, Development wrote:
I'm not trying to skirt around rules. Yahoo chat works on my
machine, So did msn yea
Hi everyone,
I'm playing around with NSPasteboard in 10.5 and want to basically
create a copy of the generalPasteboard. I've got two classes:
DDPasteboard and DDPasteboardItem. DDPasteboard has a to-many
relationship with DDPasteboardItem.
What I'm wondering is this: do I need to have
On 18-Jul-09, at 8:50 , Fritz Anderson wrote:
You have to release shadingAreas. You alloc'ed it, you own it.
Yes, I realise that. What I'm wondering is where to do it, since it's
initialised in the awakeFromNib method, rather than in initWithFrame:.
The NSDictionary does store the CGMutabl
On Jul 18, 2009, at 1:09 PM, DKJ wrote:
On 18-Jul-09, at 8:50 , Fritz Anderson wrote:
You have to release shadingAreas. You alloc'ed it, you own it.
Yes, I realise that. What I'm wondering is where to do it, since
it's initialised in the awakeFromNib method, rather than in
initWithFrame
There is no difference between initing them in initWithFrame and
awakeFromNib. You would release them in the same location. if they
need to be around for the life time of the view then release them
dealloc. If not call release before you leave awakeFromNib...
Scott Andrew
On Jul 18, 2009, a
DKJ wrote:
Yes, I realise that. What I'm wondering is where to do it, since
it's initialised in the awakeFromNib method, rather than in
initWithFrame:.
It doesn't matter where it's initialized. The only thing that
matters is who owns it.
It is not only possible, but fairly common, for
On Jul 18, 2009, at 10:36, Brad Gibbs wrote:
Can I use that to indicate the type for the argument to the method?
On Jul 18, 2009, at 9:45 AM, Quincey Morris wrote:
Perhaps NSSClassFromString ([[self entityName]
managedObjectClassName])?
Sorry, I took your example too literally, and gave yo
Thanks to all who replied. I was concerned whether the object might
somehow get re-instantiated from the nib without dealloc being called
first. If I understand memory management correctly, that would produce
a leak.
I'm assuming that the object wouldn't be re-instantiated without its
pre
Hi All,
Thanks in advance for any help on this issue. I have a file that uses
the following format for date and times:
(4 digit year)-(2 digit month)-(2 digit day)T(2 digit hour, 0-23):(2
digit minute):(2 digit seconds)-(4 digit offset from GMT)
Example: 2009-07-17T17:12:20-0700
I am usi
DKJ wrote:
Thanks to all who replied. I was concerned whether the object might
somehow get re-instantiated from the nib without dealloc being
called first. If I understand memory management correctly, that
would produce a leak.
I'm assuming that the object wouldn't be re-instantiated with
Couple of notes: I built it for the 3.1 SDK, and I didn't try it on
anything earlier. One friend of mine told me that to make it work on
the 3.0 SDK, he had to change line 31 of ClassesViewController.m from:
[self.tableView reloadData];
to
[super.tableView reloadData];
-
Great, that's what I needed to know. =)
Dave
On Jul 18, 2009, at 12:40 PM, Michael Hoy wrote:
Dave,
I've worked with UIPasteboard, which I'm assuming is similar.
dataForType: will contain string data if it's a type such as UTF8
text. My own "PasteboardItem" class had just "data" (NSData)
18/07/2009 2:37:05 pm OCRunnerTool[9566] Error loading /Test/Binary/
Path: dlopen(/Test/Binary/Path, 265): no suitable image found. Did
find:
/Test/Binary/Path: GC capability mismatch
You'll need the process to be running in the appropriate memory
management mode to load a bundle, or the
Not exactly. Sorry I've done such a poor job describing what I'm after.
I've got an entity named Building (and also entities named Floor and
Room). Each of these entities has an index attribute, which is an
int16 type. All three entities inherit the index attribute and others
from a comm
On Sat, Jul 18, 2009 at 1:18 AM, Dale Miller wrote:
> I've satisfied myself that trying to use IB which is essentially a
> bind-at-compile-time approach is a pita when trying to deal with an
> execution-time-specified number of windows which must accommodate a tab view
> which must accommodate a wo
On Jul 18, 2009, at 14:35, Brad Gibbs wrote:
- (void)addObject:(Building *)object {
[super addObject:object];
object.index = [NSNumber numberWithInt:[[self arrangedObjects]
indexOfObject:object]];
NSLog(@"Added %@", [object description]);
}
to override NSArrayController's st
On Sat, Jul 18, 2009 at 2:58 PM, Quincey
Morris wrote:
>> [object performSelector: @selector (setIndex:) withObject:
>> [NSNumber numberWithInt:[[self arrangedObjects] indexOfObject:object]]];
I would instead recommend using -setValue:forKey: like this:
[object setValue:[NSNumber numberWit
On Jul 18, 2009, at 15:07, Kyle Sluder wrote:
I would instead recommend using -setValue:forKey: like this:
[object setValue:[NSNumber numberWithInteger:[[self arrangedObjects]
indexOfObject:object]] forKey:@"index"]
Yes, it's more sensible.
But now that I think about it, the "performSelector
GC is opt in on a per-process rather than per-binary basis.
Thus in order to load a GC bundle, OCRunnerTool needs to be built at
least GC-supported and running under GC.
You'll need to determine in advance whether to run tests GC or not,
and then invoke OCRunnerTool with the appropriate env
> Nice! And how to remove that action or at least how to rename it? For
> example I've done it by mistake, for testing or similar purposes. Now
> I can't remove such action or outlet, though I've closed IB, removed
> the action from the source file, then opened IB again. The action (or
> outlet) st
Ok I can add a badge to my application icon on iphone. why? In 3.0 did
they make it so that my app could perform tasks when it was not
running and I missed the tech note? What is the practical use for this
if you are not Apple inc?
___
Cocoa-dev m
Does your app have a reason to display a number on the icon? A couple
different apps on my phone display it for:
* To-do app showing the number of items remaining to be done
* Calendar app showing the number of birthdays coming up
AFAIK, all that 3.0 added was the ability to set the badge via
On Sun, Jul 19, 2009 at 11:40 AM, Scott Ribe wrote:
>
>
> Once you have removed from source files and saved, then in the inspector
> panel, on the connections tab, you can click to remove...
I'm pretty sure once you remove the IBAction/IBOutlet from the header file
and save, IB will synchronize
On Jul 18, 2009, at 8:05 PM, KK wrote:
On Sun, Jul 19, 2009 at 11:40 AM, Scott Ribe >wrote:
Once you have removed from source files and saved, then in the
inspector
panel, on the connections tab, you can click to remove...
I'm pretty sure once you remove the IBAction/IBOutlet from the
On Sat, Jul 18, 2009 at 11:05 PM, KK wrote:
> On Sun, Jul 19, 2009 at 11:40 AM, Scott Ribe >wrote:
> >
> >
> > Once you have removed from source files and saved, then in the inspector
> > panel, on the connections tab, you can click to remove...
>
>
> I'm pretty sure once you remove the IBActio
This all depends on the type of app you are. There are a couple of non
3.0 examples that are good.
Rolando uses to show the number of
Rolandos are left to be saved, if you are interrupted mid level.
Skype shows then number of open conversations.
These are two of the non-push non-apple example
That actually is a valid concern; since you're on the iPhone, memory
constraints are tight, and your view may actually be unloaded at some point.
Instead of doing additional initialization in awakeFromNib, (which has no
counterpart), I'd recommend doing your additional setup in viewDidLoad: on
the
On Sat, Jul 18, 2009 at 4:23 PM, Quincey Morris wrote:
> On Jul 18, 2009, at 15:07, Kyle Sluder wrote:
>
> I would instead recommend using -setValue:forKey: like this:
>>
>> [object setValue:[NSNumber numberWithInteger:[[self arrangedObjects]
>> indexOfObject:object]] forKey:@"index"]
>>
>
> Yes
On 2009 Jul 17, at 09:26, Squ Aire wrote:
Throughout my application I have to do fetching. I have simplified
my code by making a helper class called CoreDataHelper...
In fact, I can think of another variation of my method. Namely, to
not have class methods in CoreDataHelper, but rather ins
On Jul 18, 2009, at 22:52, BJ Homer wrote:
In order to preserve the contract of NSArrayController (which is
that you can add any object with addObject:), I'd recommend doing
something like this:
- (void)addObject:(id)object {
if ([object respondsToSelector:@selector(setIndex:)] {
o
I have a TabBarController that has three tabs, and each view for these is
kept in its own nib. One of these views has a UITableView which has its
delegate and dataSource attached to the File's Owner.
The nib also has TableCell objects which are returned from:
- (UITableViewCell *)tableView:(UITab
45 matches
Mail list logo