Hi all,
I am running a junit test case. The code there wants to load a file that
resides in the Resources folder from the framework bundle. That framework is
where the class I am testing and the junit class reside.
However, this returns null:
NSBundle bundle = NSBundle.bundleForClass
Apparently we’re back up.
> On Feb 4, 2017, at 6:13 PM, Theodore Petrosky wrote:
>
> are we back up? or is this the end?
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list
apparently not!
> On Aug 14, 2016, at 10:30 AM, Theodore Petrosky <tedp...@yahoo.com> wrote:
>
> Is there a problem with the webobjects dev email system?
>
> Just a test
>
> Ted
> ___
> Do not post admin requests
hen I should be fine?
>>>
>>> Paul
>>>
>>>> On Apr 7, 2016, at 2:22 PM, Chuck Hill <ch...@gevityinc.com> wrote:
>>>>
>>>> Install it and use it to access the app. If it compiles, it is pretty
>>>&g
On 12/04/2016 12:48,
"webobjects-dev-bounces+pmiddleton=onestep.co...@lists.apple.com on behalf of
Paul Yu" wrote:
>Chuck
>
>If I have Apache 2.4 running and I can access it, and I can access
piled and loaded into Apache 2.4 and apachectl -M shows
>> the module loaded then I should be fine?
>>
>> Paul
>>
>>> On Apr 7, 2016, at 2:22 PM, Chuck Hill <ch...@gevityinc.com> wrote:
>>>
>>> Install it and use it to access the app.
2 PM, Chuck Hill <ch...@gevityinc.com> wrote:
>>
>> Install it and use it to access the app. If it compiles, it is pretty much
>> a binary test, either it crashes or it works fine. Try a file upload too.
>> I don’t recall ever hearing of any “it mostly works except fo
So if I’ve got it compiled and loaded into Apache 2.4 and apachectl -M shows
the module loaded then I should be fine?
Paul
> On Apr 7, 2016, at 2:22 PM, Chuck Hill <ch...@gevityinc.com> wrote:
>
> Install it and use it to access the app. If it compiles, it is pretty much a
Install it and use it to access the app. If it compiles, it is pretty much a
binary test, either it crashes or it works fine. Try a file upload too. I
don’t recall ever hearing of any “it mostly works except for this one edge
case” bugs due to version updates.
Chuck
On 2016-04-07, 6:00
Once I have the woadaptor built, how do I know that it is actually working by
itself?
Paul
Sent from my iPad
> On Apr 6, 2016, at 5:43 PM, Chuck Hill wrote:
>
> Testing? Seriously? :-P If it does not crash, it is tested.
>
> Look in the archives for these threads:
>
Testing? Seriously? :-P If it does not crash, it is tested.
Look in the archives for these threads:
WebObjects and Apache 2.4 on El Capitan
Apache Adaptor on debian:jessie
That should get you started.
Chuck
On 2016-04-06, 11:45 AM,
Hi List
Is there a procedure for building and testing WOAdaptor?
Paul
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
Hello there,
after having played for a time with constraints, I have decided to use a
trigger instead -- main reason is that I really want the validation performed
on INSERT only; a constraint might get evaluated in other occassions, too.
Nevertheless, I can't find a decent way of doing that
Chuck,
On 20. 2. 2015, at 19:37, Chuck Hill ch...@gevityinc.com wrote:
One way would be to twist the DB to do the complete restraint to me,
something like to a pseudo-code “inserted_row.attr=MAX(SELECT attr FROM
this_table WHERE another_attr.isValid) AND couple more similar conditions”
--
Anyway, back to the original question --
On 20. 2. 2015, at 18:27, OC o...@ocs.cz wrote:
Actually _this_ should not be weird, this should be quite a normal code;
the only requirement is that check-and-save, i.e., conceptually,
===
if (TEST(eo.someRelationship().someAttribute
, back to the original question --
On 20. 2. 2015, at 18:27, OC o...@ocs.czmailto:o...@ocs.cz wrote:
Actually _this_ should not be weird, this should be quite a normal code; the
only requirement is that check-and-save, i.e., conceptually,
===
if (TEST(eo.someRelationship().someAttribute
I don’t know, I suggest asking on the FrontBase developers list.
On 2015-02-21, 2:55 AM, OC wrote:
Chuck,
On 20. 2. 2015, at 19:37, Chuck Hill
ch...@gevityinc.commailto:ch...@gevityinc.com wrote:
One way would be to twist the DB to do the complete restraint to me, something
like to a
,
===
if (TEST(eo.someRelationship().someAttribute(),newAttributeValue)) {
def
new=EOUtilities.createAndInsertInstance(eo.editingContext(),'SomeRelationshipTarget')
new.someAttribute=newAttributeValue
eo.editingContext().saveChanges()
}
===
so that I can be absolutely sure that nobody stores
:
Anyway, back to the original question --
On 20. 2. 2015, at 18:27, OC o...@ocs.czmailto:o...@ocs.cz wrote:
Actually _this_ should not be weird, this should be quite a normal code; the
only requirement is that check-and-save, i.e., conceptually,
===
if (TEST(eo.someRelationship().someAttribute
On Feb 20, 2015, at 12:09 PM, OC o...@ocs.cz wrote:
it must pass a slightly more complex test than uniqueness:
- when inserted into PRICE_OFFERS table,
- the newly inserted object must have value in column PRICE, which is higher,
- than any (max) of the already existing objects
Chuck,
Actually _this_ should not be weird, this should be quite a normal code; the
only requirement is that check-and-save, i.e., conceptually,
===
if (TEST(eo.someRelationship().someAttribute(),newAttributeValue)) {
def
new=EOUtilities.createAndInsertInstance(eo.editingContext
On 2015-02-20, 12:30 PM, Ramsey Gurley wrote:
On Feb 20, 2015, at 12:09 PM, OC o...@ocs.czmailto:o...@ocs.cz wrote:
it must pass a slightly more complex test than uniqueness:
- when inserted into PRICE_OFFERS table,
- the newly inserted object must have value in column PRICE, which is higher
On 2015-02-20, 9:27 AM, OC wrote:
Chuck,
Actually _this_ should not be weird, this should be quite a normal code; the
only requirement is that check-and-save, i.e., conceptually,
===
if (TEST(eo.someRelationship().someAttribute(),newAttributeValue)) {
def
new
Chuck,
On 20. 2. 2015, at 19:37, Chuck Hill ch...@gevityinc.com wrote:
Actually _this_ should not be weird, this should be quite a normal code; the
only requirement is that check-and-save, i.e., conceptually,
=== [1]
if (TEST(eo.someRelationship().someAttribute(),newAttributeValue
Greetings,
Just a test.
-Phil
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options
Greetings Everyone,
Seems like I haven't successfully registered on this list since I
haven't received my mail below.
How do I register?
-Phil
On 2/28/2014 2:05 AM, Phil Wright wrote:
Greetings,
Just a test.
-Phil
___
Do not post admin requests
haven't successfully registered on this list since I haven't
received my mail below.
How do I register?
-Phil
On 2/28/2014 2:05 AM, Phil Wright wrote:
Greetings,
Just a test.
-Phil
___
Do not post admin requests to the list
All,
I have an app that I want to use groups sync to keep multiple instances up to
date. I have it running, but haven't come up with a great way to test. Is
there an easier way than doing a typical production setup? using wotaskd ?
Right now, I test with apache, but with a URL that has
Deploy through Apache on your laptop or test server. Then use something
like JMeter to simulate load that is editing the EOs.
Chuck
On 2013-10-09 12:06 PM, Ken Anderson kenli...@anderhome.com wrote:
All,
I have an app that I want to use groups sync to keep multiple instances
up to date
Hi,
I have a test that succeed sometime and fail other times. If I run the jUnit
source that contain this test, it fail sometime in the loadPermission() method.
I have no idea where to look at. It is even more strange that sometime, I can
have 6 successful tests and after 4 failed in a row
Hi Samuel,
JUnit can/will run tests in a different order each time. So if your tests
depend on something else having happened (EOF getting fully initialized, some
other test running first) you will see random failures like this. I think it
an/will run tests in multiple threads too (I use
Hi Chuck,
Hi Samuel,
JUnit can/will run tests in a different order each time. So if your tests
depend on something else having happened (EOF getting fully initialized, some
other test running first) you will see random failures like this. I think it
an/will run tests in multiple
Hi Chuck,
I think your last comment was correct:
I think that means a model is being used that is not yet in an EOModelGroup.
I added the model name to the new MockEditingContext() call and no more fail to
date when I run only this test class. If I run the complete project tests, I
still
I run only this test class. If I run the complete project tests,
I still have intermittent fail at the same place even after adding the model
name to all the MockEditingContext constructors. I hate intermittent
problems!
Maybe Henrique Prange understand the situation. If the model name
with
Eclipse 3.8 as well.
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your
with
Eclipse 3.8 as well.
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your
3.7 stable be used
with Eclipse 3.8?
Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with
Eclipse 3.8 as well.
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list
Hi David:
The plugin install is done by the P2 director script which should be downloaded
to /tmp (then deleted at completion). I haven't made any changes in the way
that works.
I haven't run go_wolips from within my target directory but I'll give it a try
to test. What's interesting from
...@thetimmy.com wrote:
Hi David:
The plugin install is done by the P2 director script which should be
downloaded to /tmp (then deleted at completion). I haven't made any changes
in the way that works.
I haven't run go_wolips from within my target directory but I'll give it a
try to test
with Eclipse 3.8?
Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with
Eclipse 3.8 as well.
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev
works with
Eclipse 3.8 as well.
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your
or should 3.7 stable be used
with Eclipse 3.8?
Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with
Eclipse 3.8 as well.
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list
://wocommunity.org/wolips/3.7/stable
Do we have an update site for a WOLips 3.8 or should 3.7 stable be used with
Eclipse 3.8?
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev
, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman
with
Eclipse 3.8?
Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with
Eclipse 3.8 as well.
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev
for 3.7, so WOLips 3.7 works with
Eclipse 3.8 as well.
Also, if anyone wants to test it, let me know.
Tim
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help
bounce test
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive
test - ignore
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive
test, please ignore
This email, including any attachments, is confidential and intended solely
for the person or organisation to whom it is addressed. If you are not the
intended recipient you must not disseminate, distribute or copy any part
of this email nor take any action in reliance
TEST please ignore
(have not received anything from the apple list server for two days)
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your
hi,
I want open database connection for create unit testing initialization with
database access.
I have test:
@Test
public void test(){
ERXExtensions.initApp(Application.class, new String[0]);
EOModel model = new EOModel(new
URL(file:///Users/dev1/Documents/head/fitTest
,
Alex
2012/4/17 g.alexandre g.alexan...@symaris.com
hi,
I want open database connection for create unit testing initialization
with database access.
I have test:
@Test
public void test(){
ERXExtensions.initApp(Application.*class*, *new* String[0]);
EOModel model = *new* EOModel(*new
Sorry, it is a Test
Ken
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects
Hi Everyone,
I'm writing my first JUnit test for a WebObjects Application and I've hit a
roadblock. I need access to some of the data in the database. When I just
try to run the test I get an error: java.lang.IllegalArgumentException: An
object store for the entity Account could not be found
} for this to work.
John
On Tue, Feb 1, 2011 at 3:44 PM, Joe Kramer jkra...@cyberapps.net wrote:
Hi Everyone,
I'm writing my first JUnit test for a WebObjects Application and I've hit a
roadblock. I need access to some of the data in the database. When I just
try to run the test I get an error
since my mac.com emails are not going thru it seems.. let's switch to gmail
address... ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update
Hi Kierian,
to further test your new e-mail, could you tell me if you distributed the long
response utilities you talked about at WOWODC2010 ? and how to get to it. If so
is there a place that uses it that I can peruse ... 8-)
Cheers.
On 2010-09-13, at 13:51 , Kieran Kelleher wrote
slides or have not succeeded
in connecting to the WOWODC 2010 podcast feed, let me know and I can email the
repository details to you.
Regards, Kieran
On Sep 13, 2010, at 9:12 PM, Louis Demers wrote:
Hi Kierian,
to further test your new e-mail, could you tell me if you distributed the
long
wrote:
Hi Kierian,
to further test your new e-mail, could you tell me if you distributed the
long response utilities you talked about at WOWODC2010 ? and how to get to
it. If so is there a place that uses it that I can peruse ... 8-)
Cheers.
Louis Demers eng.
www.obzerv.com
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
Tried send topic twice, but no appeared there
Sorry about this,
Kevin
This e-mail and any attachments to it (the Communication) is, unless
otherwise stated, confidential, may contain copyright material and is for the
use only of the intended recipient. If you receive the Communication in
just installed it,
so I will see if perhaps I'm wrong about that though.
Thanks again for the tip!
Ramsey
On Dec 13, 2009, at 2:45 AM, Katya Yurukova wrote:
Hi Ramsey,
You should try the moreUnit plug-in for Eclipse. It is capable of adding
single method stubs for already existing test
Hi all,
I'm wondering if there is an easier way to generate a JUnit test method stub
for a test class that already exists. Let's say I have a class Foo with method
bar(). When I generate the JUnit test FooTest in eclipse, I can select the
methods and generate the source stub for testBar
On Dec 12, 2009, at 8:14 AM, Ramsey Lee Gurley wrote:
Hi all,
I'm wondering if there is an easier way to generate a JUnit test
method stub for a test class that already exists. Let's say I have
a class Foo with method bar(). When I generate the JUnit test
FooTest in eclipse, I can
On Dec 12, 2009, at 7:02 PM, Ray Kiddy wrote:
On Dec 12, 2009, at 8:14 AM, Ramsey Lee Gurley wrote:
Hi all,
I'm wondering if there is an easier way to generate a JUnit test method stub
for a test class that already exists. Let's say I have a class Foo with
method bar(). When I
Hi Ramsey,
You should try the moreUnit plug-in for Eclipse. It is capable of
adding single method stubs for already existing test classes. It needs
a bit of adjustment so it can find your test classes, but if you have
some naming convention for your test classes you should be OK. Here's
I am running to some annoying stuff using JMeter to test my wo app.
I used the HTTP Proxy Server to layout the samplers. Then had the Regular
expression extractor to handle the session_id. But when I run the JMeter
script. I often get a You backtracked too far error. On some of the
sample.
I
I am trying out JMeter for the first time. It seems straightforward and
powerful. May I ask what's the best way to determine that a particular
request operation succeeded? Is it through the use of Response Assertions
checking for some desired text to be returned?
Amiel
On Mon, May 11, 2009 at
You can use-it, it works very well.
Le 18 mai 09 à 08:41, Amiel Montecillo a écrit :
I am trying out JMeter for the first time. It seems straightforward
and powerful. May I ask what's the best way to determine that a
particular request operation succeeded? Is it through the use of
Thank you John,
Other useful link
http://wiki.objectstyle.org/confluence/display/WO/Testing-Load+Testing+WO+Apps+with+JMeter
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list
We use Jmeter all the time to test our WO apps. The trick is to use the
Regular Expression Extractor component (located under Post Processors). Add
this component after the first WO page that creates the session id. Set the
following fields:
Reference Name: wovars
Regular Expression: /MyApp
We try to use a simple test with Jmeter to test a WO dev.
- In this script we try to connect to the site
/cgi-bin/WebObjects/myapp.woa/
- Login with a account :
/cgi-bin/WebObjects/myapp.woa/2/wa/LoginAction/doLogin
so we need to get and set the wosid (wosid =
3V8YgnSQikFjJleLOXbGzw
On May 8, 2009, at 6:05 PM, Antoine LAGIER wrote:
We try to use a simple test with Jmeter to test a WO dev.
so we need to get and set the wosid (wosid =
3V8YgnSQikFjJleLOXbGzw ) and to get and set the number of the
instance (/2 ) in the Jmeter process
You don't actually need to get
/confluence/display/WO/Web+Applications-Development-Development+on+Windows
Cheers
Cheong Hee
Message: 9
Date: Wed, 29 Apr 2009 10:09:12 -0300
From: Henrique Prange hpra...@gmail.com
Subject: Re: Problem loading EOModel in a unit test on Windows
(NSBundle fails to load .jar bundles)
To: WebObjects
Hi Mike,
Copied from bug 5941664:
This problem occurs because of a conversion from URL to String in the
NSBundle class. The Java URLDecoder class could be used to solve this
problem. Below is a possible fix that could be done on
__exctractStringFromURL private method of NSBundle:
String
of the 'NSBundle.frameworkBundles()'. The problem is that when
running a unit test on Windows NSBundle.mainBundle() returns null and
'modelGroupForLoadedBundles()' doesn't bother to check for null before
adding the 'main bundle' to the list of 'loaded bundles'.
So - why does NSBundle.mainBundle() return null
2. Shall I bother submitting a bug report via Radar (given that Mike
fixed the last bug I found before I'd managed to finish writing the
bug report)?
yeah .. because this one is annoying :)
ms
___
Do not post admin requests to the list. They will
()'. The problem is
that when running a unit test on Windows NSBundle.mainBundle() returns
null and 'modelGroupForLoadedBundles()' doesn't bother to check for null
before adding the 'main bundle' to the list of 'loaded bundles'.
So - why does NSBundle.mainBundle() return null on Windows but not on OS
X
and
a 'file path' is that URLs escape spaces as %20, while 'file paths' leave
them as spaces.
I've attached a unit test demonstrating the problem (and a potential
solution) and I've reported the bug to Apple (6841776).
Out of interest Henrique - was this the cause of the problem with spaces
that you
(as an aside - wouldn't it be nice if this were an open source
project and we could see each other's bug reports and submit
patches? - one can only dream)
dream away, dreamer ... jad works great, though. always submit a
patch if you have one :)
ms
Testing
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
test, sorry for any inconvenience
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options
I have not received any emails for since 1/1/2009. This is just a test to
see if the message does arrive at the list.
Cheers
Cheong Hee
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list
Hello;
I keep getting this NSLog line...
Instance Request: Error parsing: instanceRequest type=NSDictionary
queryInstance type=NSStringSTATISTICS/queryInstance
/instanceRequest
Has anybody else had this --- does this mean that I need to update the
apache adaptor?
cheers.
___
Andrew
Just my 2 cents to the discussion )
If we consider the object model to be correct then the task of
traversing the array with 2 types of objects seems to be ideal for the
Visitor pattern. Am I missing something?
On 4/8/08, David Avendasora [EMAIL PROTECTED] wrote:
Unfortunately, no. There's
An alternative way to handle this is to use the Strategy design
pattern and just have one Entity ... Part.
You would then create a PartBehaviour interface that encapsulates all
the things that vary among the various parts. It would give you great
flexibility to easily (easier than
On Apr 7, 2008, at 10:50 AM, David Avendasora wrote:
On Apr 7, 2008, at 1:23 PM, Chuck Hill wrote:
I have 2 types of Parts. One purchased from an outside vendor
(RawMaterial), and ones that are manufactured (ManufacturedPart).
A ManufacturedPart is made up of any number of component
Kieran,
Hmm. Your ideas are intriguing to me and I wish to subscribe to your
newsletter.
I'm going to take a serious look at using this in the future as I can
see adding other classes and being able to morph from one behavior to
another could be helpful as well.
Thanks for the heads
However, if you are under pressure to Just Fix It right now, then
Chuck's solution might be easiest and quickest.
Actually, if you're under pressure to Just Fix It right now ... I
would Just Leave It Alone :) It's only wrong because we're grumpy
software developers. Your current code gets
Hi all,
This is more of a Java question than a WO-specific one
I have an Inheritance structure in my app:
Part (abstract Superclass)
RawMaterial (subclass of Part)
ManufacturedPart (subclass of Part)
I have an NSArray of Parts that could be, RawMaterial instances,
ManufacturedPart
Try catch seems expensive to me. Why not just check with
if (aPart instanceof ManufacturedPart){
do something with aPart.billsOfMaterial()
}
At 9:12 AM -0400 4/7/08, David Avendasora wrote:
Hi all,
This is more of a Java question than a WO-specific one
I have an Inheritance structure
I'd expect the instanceof check will be much more efficient than
catching an exception. From an OO design point of view, I'd add a
billsOfMaterial() method to the Part class that simply returns
NSArray.emptyArray. ManufacturedPart will then override this to
return the correct result for
I'd expect the instanceof check will be much more efficient than
catching an exception.
By far ...
From an OO design point of view, I'd add a billsOfMaterial() method
to the Part class that simply returns NSArray.emptyArray.
ManufacturedPart will then override this to return the correct
On Apr 7, 2008, at 10:36 AM, Mike Schrag wrote:
I'd expect the instanceof check will be much more efficient than
catching an exception.
By far ...
From an OO design point of view, I'd add a billsOfMaterial() method
to the Part class that simply returns NSArray.emptyArray.
At 11:20 AM -0400 4/7/08, David Avendasora wrote:
On Apr 7, 2008, at 10:36 AM, Mike Schrag wrote:
I'd expect the instanceof check will be much more efficient than
catching an exception.
By far ...
From an OO design point of view, I'd add a billsOfMaterial()
method to the Part class that
On Apr 7, 2008, at 7:36 AM, Mike Schrag wrote:
I'd expect the instanceof check will be much more efficient than
catching an exception.
By far ...
From an OO design point of view, I'd add a billsOfMaterial() method
to the Part class that simply returns NSArray.emptyArray.
On Apr 7, 2008, at 8:26 AM, Bob Stuart wrote:
At 11:20 AM -0400 4/7/08, David Avendasora wrote:
On Apr 7, 2008, at 10:36 AM, Mike Schrag wrote:
I'd expect the instanceof check will be much more efficient than
catching an exception.
By far ...
From an OO design point of view, I'd add a
Using instanceof on a member of an inheritance hierarchy is a bad
code smell. It is the code's ways of telling you that your design
is wrong. IMO.
I was going to say in my original that instanceof is a code smell,
also, actually, but we disagree on the level of ugliness :) You're
just
On Apr 7, 2008, at 8:45 AM, Ken Anderson wrote:
Using instanceof on a member of an inheritance hierarchy is a bad
code smell. It is the code's ways of telling you that your design
is wrong. IMO.
Almost as bad as using case statements! (doh!)
Case statements are right out!
Chuck
Fetch only ManufacturedParts.
Don’t use the relationship to Parts (if that’s what you do) to get the
NSArray.
Either create a relationship to ManufacturedParts or fetch them using
a qualifier.
Iterating over a mixed NSArray wanting only one special class is bad
design. Filter it before
1 - 100 of 119 matches
Mail list logo