First of all I would clarify about used terminology. The "lot of code" that you received is not correct.
As per the documentation for fetchedObjects
property:
The results array only includes instances of the entity specified by
the fetch request (fetchRequest) and that match its predicate.
(If the fetch request has no predicate, then the results array includes all
instances of the entity specified by the fetch request)
In other words, you grab instances of your entity Autobus
So, in my opinion you should clarify
- What is the lot of code you grab
- Why you don't want the lot of code
- What's your goal
For example:
If you need to display results in a table view you will make visible the only attributes you are interested in.
You won't grab the ones that are not useful for a specific user interface.