On Jul 23, 2011, at 9:33 PM, Tom Jeffries wrote:
The code in the graphics module that displays the window
is working perfectly, but somehow drawRect never gets called after it is
called during initialization.
Are you certain it never gets called? Put an NSLog(@“drawRect!”); call into the
On Sat, Jul 23, 2011 at 11:33 PM, Tom Jeffries tjeffries@gmail.com wrote:
When I run the code that displays the graphics in question on initialization
it works fine, but when I call it later in the program it the new graphics
are not displayed. The code in the graphics module that displays
Tom, if you want to draw in a view from somewhere else, I think you need to
bracket that drawing with calls to [targetView lockFocus] and [targetView
unlockFocus]. Or, you could have a condition of some sort, a BOOL I suppose,
in the targetView which it checks every time it redraws to see if
Well, great success - I think I've finally figured out what's wrong.
I have an entity, MyEntity. I have two other entities, Foo and Bar, that both
have many to many relationships with MyEntity. MyEntity has relationshipFoo
and relationshipBar. Both Foo and Bar have a relationship called
Simple question but I'm not finding an answer in the docs or by googling.
I have a property Foo in my managed object and I want to add code in a subclass
to update some internal state when Foo's changed. Is it sufficient override the
setPrimitiveFoo: method, add my update code and call the
Hello again,
On 23 Jul 2011, at 13:00, Daniel Vollmer wrote:
Oddly enough, the TextEdit example *should* end up with the same problem when
I create a .rtf-document, drag an attachment into it (so it becomes .rtfd),
and then close the document. Unfortunately, it works fine for TextEdit but I
On 2011 Jul 24, at 01:46, Roland King wrote:
does core data implement setFoo: by *always* calling the primitive method,
setPrimativeFoo:
Well, it is documented that Core Data's implementation of setFoo: is equivalent
to
- (void)setFoo:(id)newValue {
[self willChangeValueForKey:@foo] ;
On Jul 23, 2011, at 4:32 PM, Jerry Krinock wrote:
The last time I looked at Services, it only allowed you to access the
selected (highlighted) text. Is there any way to get and replace the text
of an entire document?
I don't know.
On Jul 23, 2011, at 4:44 PM, Jerry Krinock wrote:
Is
On Fri, Jul 22, 2011 at 11:26 PM, Jerry Krinock je...@ieee.org wrote:
In Interface Builder, I often set a binding like this:
Bind to: FooController (an NSObjectController, instantiated in nib)
Controller Key: selection (an instance of Foo)
Model Key Path: barDate.someFormattingMethod
where
I appreciate the answers, so far everything that's been suggested is
something I've tried. Maybe if I put the code out somebody will see what
I'm doing wrong:
This is the function that is called by the mouse click, it's in another
module:
+ (BOOL) Play
{
// init code
[SequeraStepWindow
On Jul 24, 2011, at 10:11 AM, Tom Jeffries wrote:
+ (BOOL) Play
It’s hard to tell what’s going on in the code when you’re not following Cocoa
naming conventions. Methods should start with a lowercase letter (unless they
begin with a common acronym like “URL”).
I’m very strongly in favor of
Hi, all,
I really do not like Xcode 4. I feel like I'm a beginner all over again in
Xcode 4... I was just so comfortable to the Xcode 3 and previous releases of
Xcode interface.
I found a rather handy post on how to uninstall Xcode 4. But my thing is, I
won't be able to build apps that run on
There are a lot of people who don't care for Xcode 4 for a variety of reasons:
its different, its a one window interface, its missing support for 3rd party
NIBs, etc… Personally at my company we all are pretty much in agreement that we
love Xcode 4. Its not perfect. Its slower than it should
Yes, Xcode 4 feels like a Windows app, not a Mac app. The idiotic modality it
creates when all you want to do is create one file after another and leave each
open to edit each as you do so, but instead it closes the one just opened
prior, requiring you to go through unnecessary steps to reopen
Perhaps it's just me, but it seems like this discussion would be much more
appropriate on the Xcode Users list:
http://lists.apple.com/mailman/listinfo/xcode-users
Cheers,
Dave
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
On Jul 24, 2011, at 10:57, Julie Seif wrote:
Hi, all,
I really do not like Xcode 4. I feel like I'm a beginner all over again in
Xcode 4... I was just so comfortable to the Xcode 3 and previous releases of
Xcode interface.
I found a rather handy post on how to uninstall Xcode 4. But my
On Jul 24, 2011, at 10:57 AM, Julie Seif wrote:
I really do not like Xcode 4. I feel like I'm a beginner all over again in
Xcode 4... I was just so comfortable to the Xcode 3 and previous releases of
Xcode interface.
Hope this doesn’t sound patronizing, but: change happens, get used to it :)
Jens, I'm sorry if my naming conventions confuse you. I've been programming
for 27 years on a wide variety of operating systems, and I'm afraid
following Cocoa naming conventions is not high on my list.
I thought [SequeraStepWindow awakeFromNib] makes it obvious that
SequeraStepWindow is a class.
On 2011-07-24, at 3:32 PM, Jens Alfke wrote:
On Jul 24, 2011, at 10:57 AM, Julie Seif wrote:
I really do not like Xcode 4. I feel like I'm a beginner all over again in
Xcode 4... I was just so comfortable to the Xcode 3 and previous releases of
Xcode interface.
Hope this doesn’t sound
Patrick,
Everything works except that I can't get drawRect to be called a second
time. I assume that means the IBOutlet is working. However, I think you're
right that there's something about the interaction between the modules that
is causing the problem.
Thanks, Tom
On Sun, Jul 24, 2011 at
Looks like today is my day for grouchy responses. I wish I hadn't chosen this
week to give up sniffing glue. ;)
On Jul 24, 2011, at 11:41, Tom Jeffries wrote:
Jens, I'm sorry if my naming conventions confuse you. I've been programming
for 27 years on a wide variety of operating systems, and
Hi
I wrote a class that stores data common to all instances in an, init file, but
when I create new instances, + (void) initialize isn't getting called. I
thought that initialize was always called before anything else, so am a but
confused why it isn't working. I don't want to create a global
You mentioned that things are working perfectly except for the drawing. I did
notice that, I am not dismissing that, I just want to confirm some simple
things in an effort to help...
On Jul 24, 2011, at 1:11 PM, Tom Jeffries wrote:
I appreciate the answers, so far everything that's been
Alex Kac a...@webis.net 2011-07-24 13:31 wrote:
2011-07-25 20:22, Jeffrey Oleander wrote:
Alex Kac a...@webis.net 2011-07-24 13:07 wrote:
...its a one window interface...
This is a deal killer. Seeing things next to
each other is vital. It's the reason we had to
chop down so many trees
On Sun, Jul 24, 2011 at 3:33 PM, Ken Tozier kentoz...@comcast.net wrote:
I wrote a class that stores data common to all instances in an, init file,
but when I create new instances, + (void) initialize isn't getting called.
I can't tell for sure from your email, but it seems like you might be
As I mentioned before, everyone should go to bugreporter.apple.com and enter
bugs against this horrible MS Windows method of UI that prevents usable viewing
of multiple files that has been added to Xcode.
- Gary L. Wade (Sent from my iPhone)
___
Looks okay to me. Is there anything unusual about how you're creating
instances? The docs say +initialize is sent before any message is sent to the
*class*. So if you're using some variation of [[DBWord alloc] init...] I would
expect it to be called before the first time you ever call alloc.
Apparently you don't open more than two windows so there's your difference in
point of view. Some people don't want to go through extra steps to do something
that used to be easy and helpful.
Ten times out of ten I want to place my windows where I want them, and I don't
want my existing
Le 24 juil. 2011 à 20:46, Gary L. Wade a écrit :
As I mentioned before, everyone should go to bugreporter.apple.com and enter
bugs against this horrible MS Windows method of UI that prevents usable
viewing of multiple files that has been added to Xcode.
Well, I would count myself as a
This discussion is not appropriate for this forum. If you'd like to gripe about
the changes in Xcode 4, please use a more appropriate forum, such as:
- the Xcode Users list
- http://bugreport.apple.com
- http://devforums.apple.com
This list is for technical discussions about the Cocoa and Cocoa
On Jul 24, 2011, at 15:40, Alex Kac a...@webis.net wrote:
But as I said, you simply then tell Xcode to open two windows. I really don't
see what the problem is here. It sounds more like you made up your mind to
hate it and nothing else will change your mind.
This is the same ignorant
+initialize is called only the first time a class is instantiated; it can be
called again if a derived class does not implement it.
- Gary L. Wade (Sent from my iPhone)
On Jul 24, 2011, at 12:43 PM, Gabriel Roth gabe.r...@gmail.com wrote:
On Sun, Jul 24, 2011 at 3:33 PM, Ken Tozier
Another thought -- is it possible you have a subclass of DBWord that implements
+initialize and needs to call super?
--Andy
On Jul 24, 2011, at 3:33 PM, Ken Tozier wrote:
Hi
I wrote a class that stores data common to all instances in an, init file,
but when I create new instances, +
On Sun, Jul 24, 2011 at 12:12 PM, Andy Lee ag...@mac.com wrote:
You should know that it is most certainly possible to use that syntax with
a variable. For example:
NSString *myString = @abc; // == a variable
NSString *newString = [myString copy]; // == a message send
You can send
Yep, only if it felt as good as VS 2010 IDE, we would be having discussions
on Cocoa and not the IDE.
-tony
-Original Message-
From: Gary L. Wade
Sent: Sunday, July 24, 2011 11:13 AM
To: Julie Seif
Cc: cocoa-dev@lists.apple.com
Subject: Re: Does anyone else dislike Xcode 4?
Yes,
NSString is the class. myString is an instance of that class and in this case
is a variable. myString is information. Its not an operation. It is a class
instance which contains information on what the data is and what can be done
with it.
mystring is not a function. copy is a method call to
On Jul 24, 2011, at 4:01 PM, Tom Jeffries wrote:
On Sun, Jul 24, 2011 at 12:12 PM, Andy Lee ag...@mac.com wrote:
You should know that it is most certainly possible to use that syntax with a
variable. For example:
NSString *myString = @abc; // == a variable
NSString *newString =
On Jul 24, 2011, at 10:57 AM, Julie Seif wrote:
I really do not like Xcode 4. I feel like I'm a beginner all over again in
Xcode 4... I was just so comfortable to the Xcode 3 and previous releases of
Xcode interface.
I've been a light user of the development environment since NeXTStep 2.1,
I have to come down strongly in favor of Xcode 4. I've only been using Apple's
dev tools since ProjectBuilder (not Project Builder) but Xcode 4 is definitely
the best since then. The built in IB, the ability to view your xib on one side
and the related file's owner code on the other and then
On Jul 24, 2011, at 12:59 PM, Andy Lee wrote:
Another thought -- is it possible you have a subclass of DBWord that
implements +initialize and needs to call super?
+initialize methods shouldn’t call super. The runtime sends the message
separately to each class in the hierarchy.
As to the
On Jul 24, 2011, at 11:41 AM, Tom Jeffries wrote:
Jens, I'm sorry if my naming conventions confuse you. I've been programming
for 27 years on a wide variety of operating systems, and I'm afraid following
Cocoa naming conventions is not high on my list.
OK. It’s 33 years in my case, 15 of
On Jul 24, 2011, at 12:46 PM, Gary L. Wade wrote:
As I mentioned before, everyone should go to bugreporter.apple.com and enter
bugs against this horrible MS Windows method of UI that prevents usable
viewing of multiple files that has been added to Xcode.
Please don’t do that. It’s just
On Jul 24, 2011, at 3:46 PM, Gary L. Wade wrote:
As I mentioned before, everyone should go to bugreporter.apple.com and enter
bugs against this horrible MS Windows method of UI that prevents usable
viewing of multiple files that has been added to Xcode.
How do you stop the cycle if that
On Jul 24, 2011, at 2:28 PM, Ed Wynne wrote:
People who hate horrible MS Windows UIs file bugs against XC4, making XC5
have a normal Mac UI. Then people who like horrible MS Windows UIs will file
bug against XC5, causing everything to revert back to its current state for
XC6. Clearly this
But, aren't we always asked to file feature requests in Bug Reporter? The
feature request is this:
Allow all those tiled views to be undocked as independent windows so that
they can be moved around and sized freely. If you like them all stuck together,
you can choose that style; if you don't,
On Jul 24, 2011, at 4:24 PM, Jens Alfke wrote:
On Jul 24, 2011, at 12:46 PM, Gary L. Wade wrote:
As I mentioned before, everyone should go to bugreporter.apple.com and enter
bugs against this horrible MS Windows method of UI that prevents usable
viewing of multiple files that has been
On Jul 24, 2011, at 2:45 PM, Dave Fernandes wrote:
But, aren't we always asked to file feature requests in Bug Reporter? The
feature request is this:
Allow all those tiled views to be undocked as independent windows so that
they can be moved around and sized freely. If you like them all
One of main problems I have with XCode 4 is the one window interface.
While integrating IB made sense on some level, it also seems like if
they're going to integrate IB, they should integrate editors for
everything else (such as images). This is, of course, ludicrous.
I'm a big believer in the
On Jul 24, 2011, at 2:53 PM, Jeff Johnson wrote:
That's silly. Everyone at Apple always says, If it's not in Radar, we don't
know about it. The decision makers aren't going to read your obscure little
blog.
The engineers say that. The decision makers about UI tend not to be engineers,
Thanks all. I figured out what I was doing wrong. I was expecting a higher
level class (DBString) to call a DBWord method, when it bypasses DBWord
altogether if it has shared data of it's own.
If I delete all shared data, initialize is called correctly.
On Jul 24, 2011, at 5:02 PM, Jens Alfke
How many debugger windows/panes do you want open at a time?
I can tell you how many I want and need: 1. I can only debug one app, why
should I have 7? All interfering with my editing?
I have tabs containing the current set of files that I am editing. Every one
of them has an open debugger
On Jul 24, 2011, at 3:34 PM, Karl Goiser wrote:
So, I tried the trick with behaviours, assigning debugging to a special tab.
Sure it seems to work, but it doesn’t. I still get debugger panes crowding
out my editing windows.
Make sure you also turn off the other settings in Run* behaviors,
In XCode 4.1. and Lion,, compiling for OS X 10.6, My application is crashing in
main.m. Specifically it exhibits EXC_BAD_ACCESS errors in main.m,
NSApplicationMain and obj_msgSend on disassembly. I've got symbolic breakpoints
at: “objc_exception_throw” and “[NSException raise]“.
Any idea how
Hi Joseph,
If you type 'bt' in GDB, do you see something like this by any chance?:
#74 0x7fff8686f312 in -[NSIBObjectData initWithCoder:] ()
#75 0x7fff827fbe73 in _decodeObjectBinary ()
#76 0x7fff827fb2ed in _decodeObject ()
#77 0x7fff8686ea41 in loadNib ()
#78
Hi David,
On 25/07/2011, at 8:44 AM, David Duncan wrote:
On Jul 24, 2011, at 3:34 PM, Karl Goiser wrote:
So, I tried the trick with behaviours, assigning debugging to a special tab.
Sure it seems to work, but it doesn’t. I still get debugger panes crowding
out my editing windows.
I also had concerns re the changes, no-one likes their main work apps changed,
for unknown reasons.
But there are reasons, and if you watch the WWDC vids on Xcode you will learn
how to make the most of these changes and why Apple has made this change.
Mastering Schemes in Xcode 4
Mastering
Another cool point of XCode 4 is in fact the Souce Control, using git by
start is amazing, and being able to commit (and also edit files while
commiting) is really awesome. In really new and started with XCode in the
end times of XCode 3, I used XCode 3 just for a few weeks and them XCode 4
was
On Jul 24, 2011, at 4:08 PM, Karl Goiser wrote:
Hi David,
On 25/07/2011, at 8:44 AM, David Duncan wrote:
On Jul 24, 2011, at 3:34 PM, Karl Goiser wrote:
So, I tried the trick with behaviours, assigning debugging to a special
tab. Sure it seems to work, but it doesn’t. I still get
On Jul 24, 2011, at 15:50, Ayers, Joseph wrote:
In XCode 4.1. and Lion,, compiling for OS X 10.6, My application is crashing
in main.m. Specifically it exhibits EXC_BAD_ACCESS errors in main.m,
NSApplicationMain and obj_msgSend on disassembly. I've got symbolic
breakpoints at:
I think that we need to differentiate between the new features that could
easily have been put into Xcode 3, and the changes that have been made (to my
mind) to wreck a great UI.
Schemes and Git and the like do not justify the damage…
Why would I want to see Interface Builder objects when I am
I'm using NSTask to run a background process, monitor its output, and
ultimately present a message to the user. All has been fine with this 10.2
through 10.6, as far as I know. Now under 10.7 I saw a case where my code did
not receive quite all the stdout output from the background process. I
Someone finally gets it! @Karl Goiser.
Can anyone recommend where I can read up on (not something lengthy please)
or watch how to make Xcode 4 work?
Also, is there anyway I could create my app in Xcode 3.2.6 and then some how
open it up in Xcode 4 and do the final build in there so that it works
Hi All,
I'm having a problem establishing the right Z-ordering of Core Animation layers
in a view. I've tried carefully controlling the stacking order of the view's
sublayers, and I've also tried setting the zPosition property, but the problem
I'm having remains.
Here's a screen shot:
On Sun, Jul 24, 2011 at 10:17 PM, Scott Ribe
scott_r...@elevated-dev.com wrote:
I'm using NSTask to run a background process, monitor its output, and
ultimately present a message to the user. All has been fine with this 10.2
through 10.6, as far as I know. Now under 10.7 I saw a case where my
On Sun, Jul 24, 2011 at 10:00 PM, Daniel Waylonis d...@nekotech.com wrote:
Hi Kyle,
If you're back from vacation, could you describe how things were fixed in
OmniPlan?
I've got a blog post in the editing phase describing all the things we
do to get NSScrollViews working, but the only other
On Sun, Jul 24, 2011 at 8:52 PM, Julie Seif juliethech...@gmail.com wrote:
Also, is there anyway I could create my app in Xcode 3.2.6 and then some how
open it up in Xcode 4 and do the final build in there so that it works for
the latest iOS?
Xcode 4 projects are compatible with the latest
First off I will echo what a few others have said already and I'm sure a
moderator will say fairly soon; this list is for the discussion of the Cocoa
and Cocoa Touch APIs not the tools commonly used to develop using said APIs.
There are forums and an Xcode users list that are appropriate for
67 matches
Mail list logo